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

View all comments

Show parent comment

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