I have a model .gltf loaded in ThreeJS with a keyframe animation that change the shape of the object ( it’s a vertex animation ). It’s working fine, but the shadow doesn’t change!
This is a jsfiddle I made with an example of the shadow quality I want to achieve on vertex change https://jsfiddle.net/fw5y309n/1/ . This is what happen https://jsfiddle.net/f8qo1Lnc/ removing geometry.computeVertexNormals();
Now in local I have another model that I can’t upload online: I played around with
geometry.computeVertexNormals() on the update function, but when I apply that, my model turns total black.
Can someone help me with this one? The only difference I see between the fiddle and my model is the geometry: the working one is a SphereGeometry, while my model has a BufferGeometry.