Skip to content

SpotLight3D turns negative, and creates black boxes on small angles with volumetric fog #78500

Closed
@Jonne-G

Description

Godot version

v4.0.stable.official [92bee43]

System information

Windows 10, AMD 5 5600G, RTX 3060, Forward+ Shading

Issue description

When creating a SpotLight3D in a scene with fog, the light will first invert (e.g. opposite colours) and then create black splotches as seen in the screenshots below:

Angle of 2.0 degrees, range 15.0
Godot_v4 0-stable_win64_WCqaG9lyQk

Angle of 1.0 degrees, range 15.0,
Godot_v4 0-stable_win64_1cBv1k55nQ

Steps to reproduce

Create a spotlight with the following settings:

range: 15
angle: 1.0

Colour: ff3e00
Energy, Indirect Energy, and Volumetric Fog Energy: 500

Size: 1.0 m

And a world environment with volumetric fog on set to defaults.

Note that any angle below 3 seems to act strangely.

Minimal reproduction project

Note for opening the project: The scene opens with the camera close to the center of the scene.
Make sure to toggle the volumetric fog off and on to reset the dark spots.

SpotLight3DBugRepro.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions