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
@@ -96,6 +96,7 @@ namespace NvCloth
float m_solverFrequency = 300.0f;
uint32_t m_accelerationFilterIterations = 30;
bool m_removeStaticTriangles = true;
bool m_updateNormalsOfStaticParticles = false;
// Fabric phases parameters
float m_horizontalStiffness = 1.0f;