From: eihrul Date: Tue, 9 Mar 2010 01:44:20 +0000 (+0000) Subject: fixed ShadowMap_Parameters usage in GetShadowMapTCCube in builtincgshaderstring X-Git-Tag: xonotic-v0.1.0preview~230^2~424 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=95c9b0567355d75bd06b6e6d970453f744824ea1;p=xonotic%2Fdarkplaces.git fixed ShadowMap_Parameters usage in GetShadowMapTCCube in builtincgshaderstring git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10045 d7cf8633-e32d-0410-b094-e92efae38249 --- 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"