Merge pull request #950 from JoseJX/FixMyst3ShaderPath

MYST3: Fix rotation for camera perspective.
This commit is contained in:
Bastien Bouclet 2014-07-02 18:09:15 +02:00
commit 2ce439248b

View File

@ -220,7 +220,7 @@ void ShaderRenderer::setupCameraPerspective(float pitch, float heading, float fo
proj(3,3) = 0.0f;
proj.transpose();
Math::Matrix4 model(pitch, 180.0f - heading, 0.0f, Math::EO_ZXY);
Math::Matrix4 model(180.0f - heading, pitch, 0.0f, Math::EO_YXZ);
model.transpose();
_mvpMatrix = proj * model;