Skip to content

Commit

Permalink
SKYBOX: Rotate 90 degrees to align with other engines
Browse files Browse the repository at this point in the history
Same fix as in 8a3dc97, but for modern renderer.

For #629
  • Loading branch information
dsvensson committed Mar 15, 2023
1 parent dbe6b52 commit a1b7300
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 a1b7300

Please sign in to comment.