skia2/tests/sksl/inliner/TernaryTestCanBeInlined.glsl

8 lines
143 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
uniform vec4 colorGreen;
uniform vec4 colorRed;
vec4 main() {
return bool(colorGreen.y) ? colorGreen : colorRed;
}