mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #538 from Azaezel/Tangent_Basis_Floor
Tangent Basis Cleanup
This commit is contained in:
commit
fec4cc8acd
|
|
@ -2917,8 +2917,11 @@ inline void TSMesh::findTangent( U32 index1,
|
|||
F32 denom = (s1 * t2 - s2 * t1);
|
||||
|
||||
if( mFabs( denom ) < 0.0001f )
|
||||
return; // handle degenerate triangles from strips
|
||||
|
||||
{
|
||||
// handle degenerate triangles from strips
|
||||
if (denom<0) denom = -0.0001f;
|
||||
else denom = 0.0001f;
|
||||
}
|
||||
F32 r = 1.0f / denom;
|
||||
|
||||
Point3F sdir( (t2 * x1 - t1 * x2) * r,
|
||||
|
|
|
|||
Loading…
Reference in a new issue