From 15efe8a29cd13659eec237299fde9617f5d20247 Mon Sep 17 00:00:00 2001 From: eihrul Date: Sat, 27 Feb 2010 23:30:08 +0000 Subject: [PATCH] GetShadowMapTCCube fixes git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10033 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 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" -- 2.39.2