ecd7c2278f
The leftover tests in shared/ are not easily testable as Runtime Effects; they do things that ES2 doesn't support or use a feature not exposed directly by Runtime Effects. Change-Id: I7ebe170cf713c4a0d2dbef333c1fcbac2410c67f Bug: skia:11009 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/367059 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
9 lines
170 B
Plaintext
9 lines
170 B
Plaintext
uniform half4 colorWhite, colorGreen, colorRed;
|
|
|
|
half4 main() {
|
|
half2 x = colorWhite.rg;
|
|
x = +x;
|
|
x = -x;
|
|
return x == half2(-1) ? colorGreen : colorRed;
|
|
}
|