Skip to content
Snippets Groups Projects
Commit 95dc35bb authored by dg's avatar dg
Browse files

better!

git-svn-id: http://svn.net-core.org/repos/t-engine4@4000 51575b47-30f0-44d4-a5cc-537603b46e54
parent a2399eeb
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,6 @@ void main(void)
{
vec2 uv = gl_TexCoord[0].xy * p2;
uv -= floor(uv);
gl_FragColor = texture2D(tex, gl_TexCoord[0].xy).a;
float grey = (gl_FragColor.r*0.3+gl_FragColor.g*0.59+gl_FragColor.b*0.11) * 0.7;
gl_FragColor.rgb = fx(uv) * grey;
gl_FragColor = texture2D(tex, gl_TexCoord[0].xy);
gl_FragColor.rgb = fx(uv) * 0.7 + (gl_FragColor.rgb * 0.3);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment