fixed translation
This commit is contained in:
parent
2242adc568
commit
ce747f283a
4 changed files with 6 additions and 3 deletions
|
@ -71,7 +71,7 @@ void Transformable::Scale(const glm::vec3& factor)
|
|||
void Transformable::CalculateTransformationMatrix()
|
||||
{
|
||||
transformation = glm::mat4(1.0f);
|
||||
transformation = glm::translate(transformation, position);
|
||||
transformation = glm::translate(transformation, -position);
|
||||
transformation *= glm::toMat4(orientation);
|
||||
transformation = glm::scale(transformation, scale);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue