r/UnityHelp • • 11d ago

Post-Processing Issue.

During gameplay, materials can suddenly start glowing yellow. I’ve tried many things, but nothing has helped. All I’ve managed to figure out is that the glow only appears in shadows and when post-processing is enabled. It also seems to disappear if I stay in one spot for a long time. 


What is the problem, and how can it be fixed?
2 Upvotes

3 comments sorted by

2

u/MaksRengi 8d ago

Not sure but it looks tied to the moving shadow. At certain sun angles it turns yellow so maybe the materials is picking up a reflection probe that caught a bright sunset sky. Try setting your refl probes to baked and see if it stops

1

u/Longjumping-Round217 5d ago

Thanks for the suggestion, it led me in the right direction. It's not the reflection

probes. They were already set to Custom with a pre-made cubemap, switching to Baked did

nothing, and changing Environment Reflections - Source didn't help either.

What I found, the glow only appears when my day/night script swaps the skybox at runtime

(blended shader or two separate day/night skyboxes). With a single static skybox and no

swapping, the yellow glow never shows up.

I haven’t found the specific cause yet, but I suspect it stems from a combination of factors: post-processing, real-time lighting changes, and the swapping of the skybox.

1

u/MaksRengi 5d ago

Nice find, that's a known one. When you swap the skybox at runtime Unity doesn't update the ambient lighting and environment reflections automatically, so they can stay stuck on the old sky, like a yellow sunset. Try calling DynamicGI.UpdateEnvironment() right after the swap. If it's still off, set Environment Lighting Source to Color or Gradient and drive it from your day night cycle script instead of the skybox