From: divverent Date: Sun, 2 May 2010 12:34:15 +0000 (+0000) Subject: use 1 + uservec2.x X-Git-Tag: xonotic-v0.1.0preview~230^2~355 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b24fcce32f46a4ee7608072b733f1ea0a5447ecf;p=xonotic%2Fdarkplaces.git use 1 + uservec2.x From: Wolfgang (Blub) Bumiller git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10122 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index cab744cf..d43a35f9 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -728,7 +728,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"