From: eihrul Date: Sat, 27 Feb 2010 23:30:08 +0000 (+0000) Subject: GetShadowMapTCCube fixes X-Git-Tag: xonotic-v0.1.0preview~230^2~436 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=15efe8a29cd13659eec237299fde9617f5d20247;p=xonotic%2Fdarkplaces.git GetShadowMapTCCube fixes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10033 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 28fff13a..23b4035d 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -1088,7 +1088,7 @@ static const char *builtinshaderstring = "vec4 GetShadowMapTCCube(vec3 dir)\n" "{\n" " vec3 adir = abs(dir);\n" -" return vec4(dir, ShadowMap_Parameters.z + ShadowMap_Parameters.w / max(max(adir.x, adir.y), adir.z));\n" +" return vec4(dir, ShadowMap_Parameters.w + ShadowMap_Parameters.y / max(max(adir.x, adir.y), adir.z));\n" "}\n" "#endif\n" "\n" @@ -2232,7 +2232,7 @@ const char *builtincgshaderstring = "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"