wrong normal vector, for cos=0 fixed

This commit is contained in:
Uwe Rathmann 2024-07-29 17:33:42 +02:00
parent 6e8bdd0c60
commit cf33edb560
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ namespace
*/
if ( qFuzzyIsNull( cos ) )
return { 0.0, ( sin > 0.0 ) ? 1.0 : -1.0 };
return { 0.0, ( sin < 0.0 ) ? 1.0 : -1.0 };
const qreal m = m_aspectRatio * ( sin / cos );
const qreal t = 1.0 / qSqrt( 1.0 + m * m );