I'm dealing with deformable objects in which the geometry will be updated frame by frame. I want to toggle between face normals and vertex normals to see different rendering results. I wonder if there is a easy way for user to clear all the vertex normals that the mesh will be rendered using face normals, otherwise the mesh will be rendered with previous frame's vertex normals if I don't compute them again in this frame (face normals will always be computed at each frame in my case, there is no need to clear it).
BTW, the doc for Geoemtry.computeVertexNormals () also needs to be updated, I noticed that there is a areaWeighted parameter in the source code which is missed in the doc.
Hi,
I'm dealing with deformable objects in which the geometry will be updated frame by frame. I want to toggle between face normals and vertex normals to see different rendering results. I wonder if there is a easy way for user to clear all the vertex normals that the mesh will be rendered using face normals, otherwise the mesh will be rendered with previous frame's vertex normals if I don't compute them again in this frame (face normals will always be computed at each frame in my case, there is no need to clear it).
BTW, the doc for
Geoemtry.computeVertexNormals ()
also needs to be updated, I noticed that there is aareaWeighted
parameter in the source code which is missed in the doc.