PBR from one image

We used to have a method to convert a bump texture to a normal texture. I think I may have deleted it instead of moving it to the examples folder… :thinking:

Bump to normal can also be computed on the fragment shader
https://www.shadertoy.com/view/3sSSW1

Not sure if threejs has such an option though, or if it really makes sense on a practical approach.

If you are really concerned about texture download size, you could just do bump to normal after the bump textures are downloaded.

Found the file:

2 Likes