fix shader overflows leading to black pixels

we clamp the output of post_process materials to 0,FLT16_MAX
This commit is contained in:
Pixelflinger
2020-04-08 11:27:18 -07:00
committed by Mathias Agopian
parent 240d8cd79b
commit 2adfb259c6
+4
View File
@@ -5,5 +5,9 @@ void main() {
// Invoke user code
postProcess(inputs);
#if defined(TARGET_MOBILE)
inputs.color = clamp(inputs.color, 0.0, MEDIUMP_FLT_MAX);
#endif
fragColor = inputs.color;
}