react-three-renderer
react-three-renderer copied to clipboard
THREE.js: MeshNormalMaterial and FlatShading
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?
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)?