skia2/tests/sksl/inliner/TernaryTestCanBeInlined.glsl

7 lines
119 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
uniform vec4 color;
void main() {
sk_FragColor = color.x <= 0.5 ? vec4(0.5) : vec4(1.0);
}