skia2/tests/sksl/folding/SwizzleFolding.glsl

10 lines
198 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
uniform vec4 colorRed;
uniform vec4 colorGreen;
vec4 main() {
bool _2_ok = true;
_2_ok = _2_ok && colorGreen != colorRed;
return _2_ok ? colorGreen : colorRed;
}