react-three-renderer icon indicating copy to clipboard operation
react-three-renderer copied to clipboard

THREE.js: MeshNormalMaterial and FlatShading

Open zhitkovkostya opened this issue 8 years ago • 1 comments

Since three.js r72 MeshNormalMaterial has no shading. Is it possible to achieve the same results as with this fix (https://github.com/mrdoob/three.js/issues/7305) in react-three-render?

zhitkovkostya avatar Jul 23 '17 21:07 zhitkovkostya

I've had success with using a ref to get access to get access to the underlying THREE geometry of an object, then calling computeFlatVertexNormals as in that post.

Though in my case, I was trying to get rid of the strange shading artifacts THREE creates instead of trying to reintroduce them. Have you looked into using other material types (Phong, Lambert, etc)?

bcongdon avatar Jul 25 '17 15:07 bcongdon