Cut 8: Forward+ Vulkan cutover, atmospheric scattering sky, volumetric fog, SSR, 4-split shadows, & linear HDR
This commit is contained in:
parent
c789fe8af8
commit
35626ccd02
21 changed files with 1232 additions and 227 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue