mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 03:55:19 -04:00
Fix skybox
This commit is contained in:
parent
a2536acf2f
commit
3b299519cd
@ -50,9 +50,9 @@ void SkyboxRenderer_Render(Real64 deltaTime) {
|
|||||||
|
|
||||||
/* Rotate around camera */
|
/* Rotate around camera */
|
||||||
Vector2 rotation = Camera_Active->GetCameraOrientation();
|
Vector2 rotation = Camera_Active->GetCameraOrientation();
|
||||||
Matrix_RotateY(&rotY, rotation.Y); /* Camera yaw */
|
Matrix_RotateY(&rotY, rotation.X); /* Camera yaw */
|
||||||
Matrix_MulBy(&m, &rotY);
|
Matrix_MulBy(&m, &rotY);
|
||||||
Matrix_RotateX(&rotX, rotation.X); /* Camera pitch */
|
Matrix_RotateX(&rotX, rotation.Y); /* Camera pitch */
|
||||||
Matrix_MulBy(&m, &rotX);
|
Matrix_MulBy(&m, &rotX);
|
||||||
/* Tilt skybox too. */
|
/* Tilt skybox too. */
|
||||||
Matrix_MulBy(&m, &Camera_TiltM);
|
Matrix_MulBy(&m, &Camera_TiltM);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user