Copy fixed box-shadow shader.

This commit is contained in:
Glenn Watson 2016-08-02 13:59:21 +10:00 committed by Ms2ger
parent 2ebf8618c0
commit c349e4b1b8

View file

@ -147,5 +147,5 @@ void main(void) {
float value = color(pos, p0Rect, p1Rect, radii, sigma);
value = max(value, 0.0);
oFragColor = vec4(vColor.rgb, vInverted == 1.0 ? 1.0 - value : value);
oFragColor = vColor * vec4(1.0, 1.0, 1.0, vInverted == 1.0 ? 1.0 - value : value);
}