mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update wr + shaders for local clip rect changes.
This commit is contained in:
parent
6f22251e65
commit
b646c57230
12 changed files with 83 additions and 25 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue