forked from LeenkxTeam/LNXSDK
Bloom Isnan Isinf
This commit is contained in:
@ -48,6 +48,10 @@ void main() {
|
||||
}
|
||||
|
||||
if (currentMipLevel == 0) {
|
||||
if (any(isnan(fragColor.rgb)) || any(isinf(fragColor.rgb))) {
|
||||
fragColor.rgb = vec3(0.0);
|
||||
}
|
||||
|
||||
// https://catlikecoding.com/unity/tutorials/advanced-rendering/bloom/#3.2
|
||||
// https://catlikecoding.com/unity/tutorials/advanced-rendering/bloom/#3.4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user