2020-09-23 15:46:29 +00:00
|
|
|
in fragmentProcessor child;
|
|
|
|
bool opaque = child.preservesOpaqueInput;
|
|
|
|
|
2020-12-15 14:44:51 +00:00
|
|
|
half4 main() {
|
2020-09-23 15:46:29 +00:00
|
|
|
if (opaque) {
|
2020-12-15 14:44:51 +00:00
|
|
|
return sample(child);
|
2020-09-23 15:46:29 +00:00
|
|
|
} else {
|
2020-12-15 14:44:51 +00:00
|
|
|
return half4(0.5);
|
2020-09-23 15:46:29 +00:00
|
|
|
}
|
|
|
|
}
|