]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
use 1 + uservec2.x
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 2 May 2010 12:34:15 +0000 (12:34 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 2 May 2010 14:17:35 +0000 (16:17 +0200)
From: Wolfgang (Blub) Bumiller <blub@speed.at>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10122 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b24fcce32f46a4ee7608072b733f1ea0a5447ecf

gl_rmain.c

index c3d5e3c760a4560d93d24ec275252706ca5d2dc0..523de19bd9b9ef40796ecf1d0f87fb5be487bc22 100644 (file)
@@ -729,7 +729,7 @@ static const char *builtinshaderstring =
 "      gl_FragColor += texture2D(Texture_First, TexCoord1 + PixelSize*UserVec1.x*vec2( 0.707107,  0.707107)) * UserVec1.y;\n"
 "      gl_FragColor += texture2D(Texture_First, TexCoord1 + PixelSize*UserVec1.x*vec2(-0.453990,  0.891007)) * UserVec1.y;\n"
 "      gl_FragColor /= (1.0 + 5.0 * UserVec1.y);\n"
-"      gl_FragColor.rgb = gl_FragColor.rgb * UserVec2.x + vec3(max(0.0, sobel - UserVec2.z))*UserVec2.y;\n"
+"      gl_FragColor.rgb = gl_FragColor.rgb * (1.0 + UserVec2.x) + vec3(max(0.0, sobel - UserVec2.z))*UserVec2.y;\n"
 "#endif\n"
 "\n"
 "#ifdef USESATURATION\n"