skia2/tests/sksl/inliner/IfBodyMustBeInlinedIntoAScope.glsl

11 lines
163 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
uniform vec4 color;
void main() {
vec4 c = color;
if (c.x >= 0.5) {
c = color + vec4(0.125);
}
sk_FragColor = c;
}