Skip to content Skip to sidebar Skip to footer

My Object Isn't Reflects The Light In Three.js

I have some CubeGeometry based mesh in a three.js scene, and all of them reflects the PointLight what I'm using globally. But one of them, which made by 'hand' with just THREE.Geom

Solution 1:

It sounds like the geometry made by "hand" is missing, or has incorrect, vertex normals.

You can do this:

geometry.computeFaceNormals();
geometry.computeVertexNormals();

Post a Comment for "My Object Isn't Reflects The Light In Three.js"