4.4.1
camera_sight = get_tree().current_scene.get_node(“CameraController/SpringArm3D/Camera3D”)
fog = get_parent().get_node(“Scenery/WorldEnvironment”).environment
fog.fog_enabled = true
decrease_view()
func decrease_view():
while fog.fog_depth_end > 8:
fog.fog_depth_end -= 0.1
print(fog.fog_depth_end)
await get_tree().create_timer(0.1).t
Question
Hi, I’m trying to decrease the fog_depth_end of my environment.
the value of it decreases, as intented, but I dont see anything in my game.
Do I have to update the environment somehow?
Thanks!