Copy shaders from WR repo.

This commit is contained in:
Glenn Watson 2016-08-02 07:03:58 +10:00 committed by Ms2ger
parent e5f183a086
commit 2ebf8618c0
51 changed files with 1781 additions and 11 deletions

View file

@ -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));
}