From 660e423e9933d85b897297ee21a344cb9f3e657d Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Tue, 20 Nov 2018 23:01:04 +0000 Subject: [PATCH] Correct debug hud frustum colour --- components/sceneutil/mwshadowtechnique.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/sceneutil/mwshadowtechnique.cpp b/components/sceneutil/mwshadowtechnique.cpp index 8f42f8fcd..598a663d3 100644 --- a/components/sceneutil/mwshadowtechnique.cpp +++ b/components/sceneutil/mwshadowtechnique.cpp @@ -115,7 +115,7 @@ std::string debugFragmentShaderSource = #endif "} \n"; -std::string debugFrustumVertexShaderSource = "varying float depth; uniform mat4 transform; void main(void){gl_Position = transform * gl_Vertex; depth = gl_Position.z;}"; +std::string debugFrustumVertexShaderSource = "varying float depth; uniform mat4 transform; void main(void){gl_Position = transform * gl_Vertex; depth = gl_Position.z / gl_Position.w;}"; std::string debugFrustumFragmentShaderSource = "varying float depth; \n" " \n"