]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixed ShadowMap_Parameters usage in GetShadowMapTCCube in builtincgshaderstring
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 9 Mar 2010 01:44:20 +0000 (01:44 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 9 Mar 2010 01:44:20 +0000 (01:44 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10045 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 80abf56d19209a31003d9c6788d802256cda283c..88e7a8106458ef18a980522742779ec8528a0a06 100644 (file)
@@ -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"