mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 09:56:30 +00:00
Merge pull request #950 from JoseJX/FixMyst3ShaderPath
MYST3: Fix rotation for camera perspective.
This commit is contained in:
commit
2ce439248b
@ -220,7 +220,7 @@ void ShaderRenderer::setupCameraPerspective(float pitch, float heading, float fo
|
|||||||
proj(3,3) = 0.0f;
|
proj(3,3) = 0.0f;
|
||||||
proj.transpose();
|
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();
|
model.transpose();
|
||||||
|
|
||||||
_mvpMatrix = proj * model;
|
_mvpMatrix = proj * model;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user