Skip to content

Commit

Permalink
Merge pull request #749 from qw-ctf/skybox-rotation-modern
Browse files Browse the repository at this point in the history
SKYBOX: Rotate 90 degrees to align with other engines
  • Loading branch information
tcsabina authored Mar 16, 2023
2 parents 23a80fa + a1b7300 commit 859f3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glsl/draw_world.vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void main()
TexCoordLightmap = vec3(0, 0, 0);
Direction = (position - cameraPosition);
#if defined(DRAW_SKYBOX)
Direction = Direction.xzy;
Direction = vec3(-Direction.y, Direction.z, Direction.x);
#endif
#ifdef DRAW_DETAIL_TEXTURES
DetailCoord = vec2(0, 0);
Expand Down

0 comments on commit 859f3c7

Please sign in to comment.