godotengine / godot

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

Spotlight3D projection is not respected in VoxelGI #96795

Open HaSa1002 opened 1 month ago

HaSa1002 commented 1 month ago

Tested versions

Reproduced in 4.3.stable

System information

Godot v4.3.stable - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 (NVIDIA; 31.0.15.3623) - AMD Ryzen 7 3700X 8-Core Processor (16 Threads)

Issue description

I use a texture to define the spotlight shape. However that shape is not respected by Voxel GI. grafik

It shoud look more like this: grafik

Steps to reproduce

  1. Open the scene
  2. if the spotlight doesn't show up like in the screenshot, click the SpotLight3D once (or make it invisible/visible)

Enabling or disabling the VoxelGI node triggers this also for me.

Minimal reproduction project (MRP)

project.zip

AThousandShips commented 1 month ago

This might be a missing feature, the documentation doesn't specify anything and I can't find anything about it in the documentation so unsure what behavior is expected for this

CC @clayjohn @Calinou

clayjohn commented 1 month ago

I'm not sure what is going on actually. It doesn't seem right since changing the light's bake_mode changes this behaviour. I suspect there is a bug here, but more investigation is needed to figure out what should be happening.

To me it looks like the light is being added twice for some reason, once with the light projector used and once without