6dc5265ae6
Change-Id: I83a38f2c953a560fea3483e95e31df532b90773e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/317456 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Auto-Submit: John Stiles <johnstiles@google.com>
10 lines
194 B
GLSL
10 lines
194 B
GLSL
layout(key) in bool test;
|
|
layout(ctype=SkPMColor4f, tracked, when=test) in uniform half4 color;
|
|
void main() {
|
|
if (test) {
|
|
sk_OutColor = color;
|
|
} else {
|
|
sk_OutColor = half4(1);
|
|
}
|
|
}
|