]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix sampling of shadow2D results
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 11 Sep 2011 18:44:47 +0000 (18:44 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Wed, 14 Sep 2011 05:08:29 +0000 (07:08 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11341 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=db598bd1694ad7703502fa73c509beba710fbd0e

shader_glsl.h

index b09cb80f177783dfdbdc5c6eed4687a762c5e6cb..9781b5a2658722615edc93d2ba45d02732210887 100644 (file)
@@ -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"