mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0025732: Visualization, TKOpenGl - back face culling should not affect textured font rendering
OpenGl_TextFormatter - orient triangles in normal counter-clockwise order (GL_CCW). Test-cases for issue #25732
This commit is contained in:
@@ -181,19 +181,19 @@ void OpenGl_TextFormatter::Result (NCollection_Vector<GLuint>& theTextures,
|
||||
|
||||
// apply floor on position to avoid blurring issues
|
||||
// due to cross-pixel coordinates
|
||||
aVerts.Append (floor(aRect.BottomLeft (aVec)));
|
||||
aVerts.Append (floor(aRect.TopLeft (aVec)));
|
||||
aVerts.Append (floor(aRect.TopRight (aVec)));
|
||||
aTCrds.Append (aRectUV.BottomLeft (aVec));
|
||||
aTCrds.Append (aRectUV.TopLeft (aVec));
|
||||
aVerts.Append (floor(aRect.TopLeft (aVec)));
|
||||
aVerts.Append (floor(aRect.BottomLeft (aVec)));
|
||||
aTCrds.Append (aRectUV.TopRight (aVec));
|
||||
aTCrds.Append (aRectUV.TopLeft (aVec));
|
||||
aTCrds.Append (aRectUV.BottomLeft (aVec));
|
||||
|
||||
aVerts.Append (floor(aRect.BottomLeft (aVec)));
|
||||
aVerts.Append (floor(aRect.TopRight (aVec)));
|
||||
aVerts.Append (floor(aRect.BottomRight (aVec)));
|
||||
aTCrds.Append (aRectUV.BottomLeft (aVec));
|
||||
aTCrds.Append (aRectUV.TopRight (aVec));
|
||||
aVerts.Append (floor(aRect.TopRight (aVec)));
|
||||
aVerts.Append (floor(aRect.BottomLeft (aVec)));
|
||||
aTCrds.Append (aRectUV.BottomRight (aVec));
|
||||
aTCrds.Append (aRectUV.TopRight (aVec));
|
||||
aTCrds.Append (aRectUV.BottomLeft (aVec));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user