]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
simplify glsl code (we can do vec3(y))
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Jun 2009 13:02:26 +0000 (13:02 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 6 Jun 2009 13:02:26 +0000 (13:02 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9008 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 625b5b1320be20549714ae611cc164bdebed14ea..72bfa4bba871376cbf3f8bb2ea20b6c5459ca0bf 100644 (file)
@@ -518,8 +518,8 @@ static const char *builtinshaderstring =
 "#ifdef USESATURATION\n"
 "      //apply saturation BEFORE gamma ramps, so v_glslgamma value does not matter\n"
 "      myhalf y = dot(gl_FragColor.rgb, vec3(0.299, 0.587, 0.114));\n"
-"      //gl_FragColor = vec3(y, y, y) + (gl_FragColor.rgb - vec3(y, y, y)) * Saturation;\n"
-"      gl_FragColor.rgb = mix(vec3(y, y, y), gl_FragColor.rgb, Saturation);\n" // TODO: test this on ATI
+"      //gl_FragColor = vec3(y) + (gl_FragColor.rgb - vec3(y)) * Saturation;\n"
+"      gl_FragColor.rgb = mix(vec3(y), gl_FragColor.rgb, Saturation);\n" // TODO: test this on ATI
 "#endif\n"
 "\n"
 "#ifdef USEGAMMARAMPS\n"