skia2/resources/sksl/shared/ConstVariableComparison.sksl

12 lines
193 B
Plaintext
Raw Normal View History

uniform half4 colorGreen, colorRed;
half4 main() {
const float4 a = float4(0);
const float4 b = float4(1);
if (a == b) {
return colorRed;
} else {
return colorGreen;
}
}