- Home /
Lighting effected by the sky gradient isn't updating until game is paused,World lighting effected by gradient sky doesn't update in real time
Hello, I'm making a day/night cycle for my game. I got everything to work however there is one problem that ruins the effect. As stated in the title, the light emitted from the gradient sky isn't being changed until I pause the game. What I mean by that is I have a script that changes the colour of the 3 colours over time and the colour of the sky does change, however, lighting on objects stay the same until paused, once paused the lighting effected by the sky updates and stays that way until updated again.
I'm using HDRP, I tried going through all the settings and saw one thing that seems like it would fix it, in the post-processing panel under gradient sky there is an update mode, I set that to realtime but does seemingly nothing. I've played around with other settings but nothing works.
So my question is how do make the lighting effected by the sky gradient update every frame as I am updating the colours through script.
using unity 2019.4.16
thanks for any help.
Yeah, I have the same issue. Spent several hours looking for a possible solution. And unitys lighting is a web of different combinations. For example i found something about realtime GI thats not supported in HDRP.
However theIndirect lighting or whatever it is gets fixed when we pause. There must be some update whe can call manually? Would be enough to send it once every 60seconds not even every frame.
Still havnt found a soultion anyways.