From 286711d1c38ab2e216430b6aee2362f153fda526 Mon Sep 17 00:00:00 2001 From: freezy Date: Sat, 21 Nov 2026 01:48:43 +0100 Subject: [PATCH] environment: give a directional light the size it asks for. --- Runtime/HdrpEnvironmentApplier.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Runtime/HdrpEnvironmentApplier.cs b/Runtime/HdrpEnvironmentApplier.cs index d1e2a98..4e9b168 100644 --- a/Runtime/HdrpEnvironmentApplier.cs +++ b/Runtime/HdrpEnvironmentApplier.cs @@ -115,6 +115,8 @@ public void ConfigureLight(Light light, in VpeEnvironmentLight spec) light.range = spec.Range; // a studio light is a wide source: its shadows and highlights are soft light.shapeRadius = 0.15f; + } else if (spec.AngularDiameter > 0f) { + hdLight.angularDiameter = spec.AngularDiameter; } hdLight.affectsVolumetric = false; hdLight.EnableShadows(spec.Shadows);