skia2/resources/sksl/shared/StackingVectorCasts.sksl

9 lines
182 B
Plaintext
Raw Normal View History

uniform half4 colorGreen, colorRed;
half4 main(float2 coords) {
if (half4(0, 0, 1, 1) == half4(int4(0, 0, 1, 1)))
return colorGreen;
else
return colorRed;
}