From a5ed36ae21ba077cf4cdc18515906d21047c2eb9 Mon Sep 17 00:00:00 2001 From: Stefan Heinz Date: Sun, 30 Nov 2025 15:58:31 +0100 Subject: [PATCH] Add nearz property to clustered lights --- fgd/bases/BaseClusteredLight.fgd | 3 ++- fgd/point/light/light_rt.fgd | 1 + fgd/point/light/light_rt_spot.fgd | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fgd/bases/BaseClusteredLight.fgd b/fgd/bases/BaseClusteredLight.fgd index 041696f4f..d71977e2f 100644 --- a/fgd/bases/BaseClusteredLight.fgd +++ b/fgd/bases/BaseClusteredLight.fgd @@ -16,6 +16,7 @@ _dynamicshadowallocation(boolean) : "Use dynamic shadow allocation" : 0 : "Determines whether the map (static) or the engine (dynamic) should dictate the size of the shadows for this light." _initialshadowsize(integer) : "Initial Shadow Size" : 3 : "The initial static shadow resolution exponent. Only relevant for static shadow allocation. Adding 1 to this value doubles both dimensions of the shadowmap." _shadowscale(float) : "Shadow Size Scale" : "1.0" : "Scales the shadowmap resolution exponent. Only relevant for dynamic shadow allocation. For example, a scale of 3.0 will give this light shadowmaps 8 (2^3) times as large as they would usually be." - + nearz(float) : "Near Z" : 4.0 : "Near Z for this light. Determines where shadows start to be cast. Inside the nearz radius, the light is still visible, but anything inside it won't cast shadows" + input SetShadowSize(integer) : "Set the size exponent of this light's shadowmap(s)." ] diff --git a/fgd/point/light/light_rt.fgd b/fgd/point/light/light_rt.fgd index 391977f70..372f2b74f 100644 --- a/fgd/point/light/light_rt.fgd +++ b/fgd/point/light/light_rt.fgd @@ -1,5 +1,6 @@ @PointClass base(BasePointLight, BaseLightFalloff, BaseClusteredDynLight) clusteredlight(point) + sphere(nearz) = light_rt: "An invisible omnidirectional realtime light-source." [ ] diff --git a/fgd/point/light/light_rt_spot.fgd b/fgd/point/light/light_rt_spot.fgd index c8e2846cd..4442fbb7d 100644 --- a/fgd/point/light/light_rt_spot.fgd +++ b/fgd/point/light/light_rt_spot.fgd @@ -1,5 +1,6 @@ @PointClass base(BaseSpotLight, BaseLightFalloff, BaseClusteredDynLight) clusteredlight(spot) + sphere(nearz) = light_rt_spot: "An invisible and directional realtime spotlight." [ ]