skia2/resources/sksl/shared/DependentInitializers.sksl

7 lines
142 B
Plaintext
Raw Normal View History

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