three.js-normal-map-0

The continuing saga of displacement and normals in three.js

MIT License

Stars
15

three.js-normal-map-0

A demo of a normal map in three.js, showing some problems and solutions:

Getting normals to work

I asked: "Why do these normals look twisted?" http://stackoverflow.com/questions/17453298/twisted-normals-with-the-three-js-normal-shader-r-58

Adding a displacement map

I asked: "Can normals be recalculated post-displacement?" http://stackoverflow.com/questions/17528878/compute-normals-from-displacement-map-in-three-js-r-58

Getting specular right

Getting normals from displacement map

Getting specular right 2