Open nem0 opened 2 years ago
Frustum::setPlanesFromPoints() and ShiftedFrustum::setPlanesFromPoints() computes normals as points[0] - points[1], which has precision issues far from [0, 0, 0].
Frustum::setPlanesFromPoints()
ShiftedFrustum::setPlanesFromPoints()
points[0] - points[1]
See where setPlanesFromPoints is used and replace it.
Frustum::setPlanesFromPoints()
andShiftedFrustum::setPlanesFromPoints()
computes normals aspoints[0] - points[1]
, which has precision issues far from [0, 0, 0].See where setPlanesFromPoints is used and replace it.