godotengine / godot

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

Volumetric light wont get blocked by objects when shadows are enabled #66320

Closed Xyotic closed 2 years ago

Xyotic commented 2 years ago

Godot version

Godot4 Beta1

System information

Windows10, Vulkan, RTX2080

Issue description

Enabling volumetrics in WorldEnvironment and on a light source, the volumetric light passes through objects even if shadows are enabled. grafik grafik

I've attached this scene as a mrp.

Edit: it seems to be dependent on the viewed angle... its most noticable when looking directly at the back face of the box.

Steps to reproduce

See mrp

Minimal reproduction project

Test_4_0.zip

Calinou commented 2 years ago

Duplicate of https://github.com/godotengine/godot/issues/57722 (same cause – volumetric fog shadow rendering is broken for SpotLights in general).

Xyotic commented 2 years ago

"closed as not planned"? Does this mean we wont ever get Spotlights with volumetrics and shadows enabled?

Zireael07 commented 2 years ago

closed as duplicate - read the comment above instead of just reading the automated message

Xyotic commented 2 years ago

It did just confuse me. Thats all