mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Update WR/shaders (more AA, VTF mac fix, reftest fixes).
This commit is contained in:
parent
5b0a1990d5
commit
5a7004744a
7 changed files with 122 additions and 147 deletions
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
void main(void) {
|
||||
do_clip(vPos, vClipRect, vClipRadius);
|
||||
float alpha = do_clip(vPos, vClipRect, vClipRadius);
|
||||
vec2 st = vTextureOffset + vTextureSize * fract(vUv);
|
||||
oFragColor = texture(sDiffuse, st);
|
||||
oFragColor = texture(sDiffuse, st) * vec4(1, 1, 1, alpha);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue