Fix invocation of glm::cross and glm::normalize
This commit is contained in:
parent
968a18a859
commit
a30151231f
|
@ -647,8 +647,8 @@ SGVECTOR S3D::CalcTriNorm( const SGPOINT& p1, const SGPOINT& p2, const SGPOINT&
|
|||
return SGVECTOR( 0.0, 0.0, 1.0 );
|
||||
|
||||
// normal
|
||||
tri = cross( pts[1] - pts[0], pts[2] - pts[0] );
|
||||
normalize( tri );
|
||||
tri = glm::cross( pts[1] - pts[0], pts[2] - pts[0] );
|
||||
glm::normalize( tri );
|
||||
|
||||
return SGVECTOR( tri.x, tri.y, tri.z );
|
||||
}
|
||||
|
|
|
@ -375,7 +375,7 @@ static void calcTriad( glm::dvec3* pts, glm::dvec3& tri )
|
|||
}
|
||||
|
||||
// normal * 2 * area
|
||||
tri = cross( pts[1] - pts[0], pts[2] - pts[0] );
|
||||
tri = glm::cross( pts[1] - pts[0], pts[2] - pts[0] );
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue