skia2/tests/sksl/shared/CastsRoundTowardZero.glsl

9 lines
147 B
Plaintext
Raw Normal View History

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