godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.19k stars 21.21k forks source link

(3D renderer) Lights are visible through all objects with a material with Clearcoat enabled #86530

Open tarnishedmoth opened 10 months ago

tarnishedmoth commented 10 months ago

Tested versions

Found in v4.2.1.stable.official [b09f793f5]

System information

Godot v4.2.1.stable - Windows 11 (22621.2861) - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 (NVIDIA; 31.0.15.4633) - 11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz (16 Threads)

Issue description

Lights are visible through objects with a material with Clearcoat enabled. It looks like a lens flare with a black point center, and it flickers between visible and invisible every frame that the camera is moved. Changing the Glow parameters affects how the artifact appears.

With a camera parameters with auto-exposure enabled it will cause the auto-exposure to jump all over the place to compensate for the bright spot.

Screenshot 2023-12-26 125824

https://github.com/godotengine/godot/assets/87274781/1b3a53e8-19b6-4e01-b564-8a212215c414

Steps to reproduce

Minimal reproduction project (MRP)

N/A (but one can be provided)

mlaass commented 2 months ago

For me this is only really visible when glow is on in the world environment. Without glow I just get a single black pixel or in some scenes I get 2 black pixels. Basically makes clearcoat unusable for me. Also if it matters, I'm on Linux with an RTX 3060. It happens in 4.2.2 and 4.3