skia2/tests/sksl/inliner/IfBodyMustBeInlinedIntoAScope.glsl

13 lines
212 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
uniform vec4 colorGreen;
uniform vec4 colorRed;
vec4 main() {
vec4 c = colorRed;
if (colorGreen.y == 1.0) {
vec4 _0_x = colorGreen;
c = _0_x;
}
return c;
}