fix shader overflows leading to black pixels
we clamp the output of post_process materials to 0,FLT16_MAX
This commit is contained in:
committed by
Mathias Agopian
parent
240d8cd79b
commit
2adfb259c6
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user