Strange flashes that are visible only in the camera

Hello all, I’m new here.

I made vertex color based lighting and now I don’t know why it have these flashes when camera moves or resizes like in video below. Any ideas?
2019.2 with with LWRP settings from default scene.

1 Like

The problem is something in the shader is producing an infinity, and the bloom is catching that and going crazy. If you turn off bloom in the post processing it should go away, but obviously then you won’t have any bloom. You might see white or black spots in the middle of where the bloom was going crazy before.

The post processing options used to have an option to “suppress NaNs”, which actually checks for both NaNs and infinity, though I think that option got removed and it was turned on by default. Though maybe not? The post processing stack for the SRPs seems like they’re constantly changing lately.

The other fix is to turn off HDR on your camera. A non-HDR render target can’t save NaN or Infinity, so the problem magically goes away.

The better fix would be to figure out what’s causing the problem in the first place. If you’re using a custom shader, then it’s something there.

1 Like

Thank you, bgolus, disabling of HDR is helped me as a temporary solution.

Stop NaN propagation was enabled in camera.
And yes, I have custom unlit shader graph, but it contains only lerp by alpha nodes for samplers and multiply nodes for vetrex colors. I don’t have idea, where infinity can be returned.

UPD: I still don’t know reason but clamp for final color is thing that I need. Thanks again.

1 Like