From 95c9b0567355d75bd06b6e6d970453f744824ea1 Mon Sep 17 00:00:00 2001 From: eihrul Date: Tue, 9 Mar 2010 01:44:20 +0000 Subject: [PATCH] fixed ShadowMap_Parameters usage in GetShadowMapTCCube in builtincgshaderstring git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10045 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_rmain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gl_rmain.c b/gl_rmain.c index 80abf56d..88e7a810 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -2318,13 +2318,13 @@ const char *builtincgshaderstring = "}\n" "# endif\n" "# endif\n" -"#endif // defined(USESHADOWMAPRECT) || defined(USESHADOWMAP2D) || defined(USESHADOWMAPORTHO)\n" +"#endif // defined(USESHADOWMAPRECT) || defined(USESHADOWMAP2D)\n" "\n" "#ifdef USESHADOWMAPCUBE\n" "float4 GetShadowMapTCCube(float3 dir, float4 ShadowMap_Parameters)\n" "{\n" " float3 adir = abs(dir);\n" -" return float4(dir, ShadowMap_Parameters.z + ShadowMap_Parameters.w / max(max(adir.x, adir.y), adir.z));\n" +" return float4(dir, ShadowMap_Parameters.w + ShadowMap_Parameters.y / max(max(adir.x, adir.y), adir.z));\n" "}\n" "#endif\n" "\n" -- 2.39.2