From 69296daac0bb524caebb95423bfd6f4c8a377cd6 Mon Sep 17 00:00:00 2001 From: Lynix Date: Mon, 19 Dec 2016 18:25:19 +0100 Subject: [PATCH] Graphics/SkyboxBackground: Reverse Z axis to match reflections There's something wrong about skyboxes at the moment. --- src/Nazara/Graphics/SkyboxBackground.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nazara/Graphics/SkyboxBackground.cpp b/src/Nazara/Graphics/SkyboxBackground.cpp index 4a646bdbe..9ba2e3652 100644 --- a/src/Nazara/Graphics/SkyboxBackground.cpp +++ b/src/Nazara/Graphics/SkyboxBackground.cpp @@ -154,7 +154,7 @@ namespace Nz "{\n" " vec4 WVPVertex = WorldViewProjMatrix * vec4(VertexPosition, 1.0);\n" " gl_Position = WVPVertex.xyww;\n" - " vTexCoord = vec3(VertexPosition.x, VertexPosition.y, -VertexPosition.z);\n" + " vTexCoord = VertexPosition;\n" "}\n"; try