OpenGL2: Small glsl shader optimizations, fixes, and cleanup.

This commit is contained in:
SmileTheory committed 2013-12-12 21:38:01 -08:00
1 parent efe8437cde
commit 623d107f42
15 files changed
+255 -244

No files matched your search

+1 -1
View File
@@ -5,5 +5,5 @@ varying float var_Scale;
void main()
{
gl_FragColor = u_Color;
gl_FragColor.a *= sqrt(clamp(var_Scale, 0.0, 1.0));
gl_FragColor.a = sqrt(clamp(var_Scale, 0.0, 1.0));
}