From a1b730001f991fd27944eea679c2ba749a4aa5b7 Mon Sep 17 00:00:00 2001 From: Daniel Svensson Date: Wed, 15 Mar 2023 22:52:48 +0100 Subject: [PATCH] SKYBOX: Rotate 90 degrees to align with other engines Same fix as in 8a3dc977, but for modern renderer. For #629 --- src/glsl/draw_world.vertex.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glsl/draw_world.vertex.glsl b/src/glsl/draw_world.vertex.glsl index 744ecd478..df6a344f3 100644 --- a/src/glsl/draw_world.vertex.glsl +++ b/src/glsl/draw_world.vertex.glsl @@ -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);