Update wr + shaders for local clip rect changes.

This commit is contained in:
Glenn Watson 2016-08-24 06:22:07 +10:00
parent 6f22251e65
commit b646c57230
12 changed files with 83 additions and 25 deletions

View file

@ -4,5 +4,10 @@
void main(void) {
float a = texture(sDiffuse, vUv).a;
#ifdef WR_FEATURE_TRANSFORM
float alpha = 0;
init_transform_fs(vLocalPos, vLocalRect, alpha);
a *= alpha;
#endif
oFragColor = vec4(vColor.rgb, vColor.a * a);
}