Hey everyone, to my knowledge you can only use normal maps in threejs by loading an image, and then using the normalMap attribute inside any texture you like.
You can also load shader textures using the ShaderMaterial.
Is there a way to load a shader as a normal map, or otherwise use it as some form of displacement? I’ve seen examples on stack overflow and the forums of using shaders to calculate tangents, but they don’t seem to directly execute shaders and use the output as normal maps.