- Edited
GI looks different when the main scene is reloaded. I've already tried enabling and disabling SDFGI with no success:
When I run the game with SDFGI turned off, the scene always looks the same after reloading. But if I turn SDFGI on, the scene will look dark when it's reloaded.
- First image is when I first run the game.
- Second image has no SDFGI (looks the same after every reload).
- Third image is after reloading the scene with SDFGI enabled (once, twice... doesn't matter).
- Fourth image is when I disable SDFGI, run the game and, with the game open, enable SDFGI again (also looks bad when reloaded).
- Fifth image is how it looks in editor with SDFGI enabled.
I reload the scene with get_tree().reload_current_scene()
Also tried refreshing SDFGI with:
func _ready():
env.environment.sdfgi_enabled = false
await get_tree().process_frame
env.environment.sdfgi_enabled = true
Tried that in Godot 4.2.1 and 4.3. Results were the same. What am I missing?
Thank you.