PolygonBucket: enable fade and tinting of textured polygons

This commit is contained in:
Hannes Janetzek
2014-10-10 00:14:57 +02:00
parent 01a41d5f87
commit 7b9301d479
2 changed files with 23 additions and 25 deletions

View File

@@ -24,5 +24,5 @@ varying vec2 v_st;
varying vec2 v_st2;
void
main(){
gl_FragColor = mix(texture2D(tex, v_st), texture2D(tex, v_st2), u_scale.x);
gl_FragColor = mix(texture2D(tex, v_st), texture2D(tex, v_st2), u_scale.x) * u_color;
}