skia2/resources/sksl/shared/DependentInitializers.sksl

7 lines
129 B
Plaintext
Raw Normal View History

uniform half4 colorGreen, colorRed;
half4 main() {
float x = 0.5, y = x * 2;
return (y == 1) ? colorGreen : colorRed;
}