Fixed cloth simulation generating incorrect normals

Fixed cloth simulation generating incorrect normals.
Also added option in Cloth Component to update normals of static particles (disabled by default).
User will want to keep the option disabled when continuity of the normals is important, like in characters, but for environmental cloth the mesh could look better when the normals of static particles are updated too.

Enable 'Update normals of static particles' option on blind slices of  Nvcloth gem

Fix unit tests
This commit is contained in:
Aaron Ruiz Mora
2021-05-17 09:53:14 +01:00
committed by GitHub
parent 8ed8c26864
commit 0b551a0c21
13 changed files with 77 additions and 49 deletions
@@ -74,6 +74,7 @@ namespace NvCloth
->Field("Solver Frequency", &ClothConfiguration::m_solverFrequency)
->Field("Acceleration Filter Iterations", &ClothConfiguration::m_accelerationFilterIterations)
->Field("Remove Static Triangles", &ClothConfiguration::m_removeStaticTriangles)
->Field("Update Normals of Static Particles", &ClothConfiguration::m_updateNormalsOfStaticParticles)
;
}
}