Update webrender (text run + transforms fix).

This commit is contained in:
Glenn Watson 2016-10-05 13:46:10 +10:00
parent 1c62520142
commit fffa93082b
3 changed files with 9 additions and 4 deletions

View file

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