From db598bd1694ad7703502fa73c509beba710fbd0e Mon Sep 17 00:00:00 2001 From: eihrul Date: Sun, 11 Sep 2011 18:44:47 +0000 Subject: [PATCH] fix sampling of shadow2D results git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11341 d7cf8633-e32d-0410-b094-e92efae38249 --- shader_glsl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shader_glsl.h b/shader_glsl.h index b09cb80f..9781b5a2 100644 --- a/shader_glsl.h +++ b/shader_glsl.h @@ -32,7 +32,7 @@ "# define dp_texture2D texture2D\n" "# define dp_texture3D texture3D\n" "# define dp_textureCube textureCube\n" -"# define dp_shadow2D(a,b) float(shadow2D(a,b))\n" +"# define dp_shadow2D(a,b) (shadow2D(a,b).r)\n" "#endif\n" "\n" "// GL ES and GLSL130 shaders use precision modifiers, standard GL does not\n" -- 2.39.2