Skip to content

Enabling Fog in WorldEnvironment changes background color even when Sky Affect is set to 0 #108779

@flouterrr

Description

@flouterrr

Tested versions

Reproducible in: 4.4.1.stable

System information

Godot v4.4.1.stable - Windows 11 - Multi-window, 2 monitors - Vulkan (Forward+) - AMD Radeon RX 7800 XT - AMD Ryzen 7 7700 8-Core Processor (16 threads)

Issue description

When having the Background Mode in WorldEnvironment set to Clear Color or Custom Color, enabling Fog at all (doesn't matter whether Exponential or Depth Fog) affects the color of the background. Even when the fog "density" is set to 0, effectively making the fog completely transparent and having "Sky Affect" set to 0, toggling between having the fog on and off very clearly shows a significant color difference (Having the Fog enabled makes the background color darker and more saturated)

Steps to reproduce

  • Create an empty 3D scene
  • Add a WorldEnvironment
  • Change the Background Mode to Custom Color and set some color for the background
  • Enable the Fog and in the Fog settings set Sky Affect to 0.0
  • You can now toggle the Fog on and off to see that it clearly affects the color of the background

Minimal reproduction project (MRP)

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions