Moved the rotation to before the scale
This commit is contained in:
@@ -497,6 +497,7 @@ bool TextBase::computeMatrix(osg::Matrix& matrix, osg::State* state) const
|
||||
rotate_matrix.invert(temp_matrix);
|
||||
|
||||
matrix.makeTranslate(-_offset);
|
||||
matrix.postMultRotate(_rotation);
|
||||
|
||||
if (_characterSizeMode!=OBJECT_COORDS)
|
||||
{
|
||||
@@ -551,8 +552,6 @@ bool TextBase::computeMatrix(osg::Matrix& matrix, osg::State* state) const
|
||||
}
|
||||
}
|
||||
|
||||
matrix.postMultRotate(_rotation);
|
||||
|
||||
if (_autoRotateToScreen)
|
||||
{
|
||||
matrix.postMult(rotate_matrix);
|
||||
|
||||
Reference in New Issue
Block a user