mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update webrender (text run + transforms fix).
This commit is contained in:
parent
1c62520142
commit
fffa93082b
3 changed files with 9 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue