w23 / xash3d-fwgs

Vulkan Ray Tracing fork of Xash3D FWGS engine. Intended to be merged into master at some point in the future.
160 stars 16 forks source link

Light clusters corruption: light indices beyond currently active lights #730

Open w23 opened 4 months ago

w23 commented 4 months ago

minidemo_08_... gets point light index = 7 from clusters, but there are only 7 lights (index 6 being max). This manifests as NaNs in point light calculation because out-of-bounds values don't make sense.

Not sure if investigating and fixing this makes sense, as we're eventually plan to go away from clusters. Close this issues when/if we do.