Cut 8: Forward+ Vulkan cutover, atmospheric scattering sky, volumetric fog, SSR, 4-split shadows, & linear HDR

This commit is contained in:
Meta Vens 2026-12-05 17:34:33 +01:00
commit 35626ccd02
21 changed files with 1232 additions and 227 deletions

View file

@ -110,10 +110,10 @@ public partial class MultiMeshPartPool : Node3D
return;
}
bool castShadow = wantsShadow && bucket.LocalRadius >= 1.15f;
bool castShadow = wantsShadow && bucket.LocalRadius >= 0.45f;
if (castShadow && _hasFrustum)
{
float maxShadowDist = 45f + scaledRadius;
float maxShadowDist = 120f + scaledRadius;
if (worldCenter.DistanceSquaredTo(_camPos) > maxShadowDist * maxShadowDist)
{
castShadow = false;