Godot version
4.0.beta (53d2a9a)
System information
Fedora 36, GeForce GTX 1080 (NVIDIA 515.65.01)
Issue description
Unlike in Vulkan, environment fog does not affect sky rendering when using the OpenGL renderer. Fog Sky Affect's value is ignored.
Fog disabled

Fog enabled

Steps to reproduce
- Switch to the OpenGL driver in the Project Settings.
- Make sure to start the editor with single-window mode enabled afterwards. This can be done by enabling Single Window Mode in the Editor Settings before changing the driver, or by opening the project in the editor directly with the
--single-window command line argument.
- Add a WorldEnvironment node, a Camera3D node and a MeshInstance3D in front of the camera.
- Enable fog. Increase density to 0.05 or more to make a visible difference in the scene.
Minimal reproduction project
test_opengl_fog_sky_affect.zip
Godot version
4.0.beta (53d2a9a)
System information
Fedora 36, GeForce GTX 1080 (NVIDIA 515.65.01)
Issue description
Unlike in Vulkan, environment fog does not affect sky rendering when using the OpenGL renderer. Fog Sky Affect's value is ignored.
Fog disabled
Fog enabled
Steps to reproduce
--single-windowcommand line argument.Minimal reproduction project
test_opengl_fog_sky_affect.zip