mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Copy shaders from WR repo.
This commit is contained in:
parent
e5f183a086
commit
2ebf8618c0
51 changed files with 1781 additions and 11 deletions
|
@ -141,6 +141,8 @@ void main(void) {
|
|||
vec2 radii = vBorderRadii.xy;
|
||||
float sigma = vBlurRadius / 2.0;
|
||||
float value = color(pos, p0Rect, p1Rect, radii, sigma);
|
||||
SetFragColor(vec4(vColor.rgb, max(value, 0.0)));
|
||||
|
||||
value = max(value, 0.0);
|
||||
SetFragColor(vec4(vColor.rgb, vColor.a == 0.0 ? 1.0 - value : value));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue