From d2f0f72ad40a3ce4040db551eee7f2facbc1dbd0 Mon Sep 17 00:00:00 2001 From: lenship2 Date: Mon, 17 Aug 2026 03:14:01 -0600 Subject: [PATCH 1/2] make shadow size dropdown work --- fgd/bases/BaseClusteredLight.fgd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fgd/bases/BaseClusteredLight.fgd b/fgd/bases/BaseClusteredLight.fgd index 415940637..e4b5c1c51 100644 --- a/fgd/bases/BaseClusteredLight.fgd +++ b/fgd/bases/BaseClusteredLight.fgd @@ -36,8 +36,7 @@ ] linedivider_clus2[!engine](string) readonly : "----------------------------------------------------------------------------------------------------------" : : "Oops, you must've misclicked." - - _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." + 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)." From dfc9ec0b36ff1f0318dd667c80db95fa78bf1699 Mon Sep 17 00:00:00 2001 From: lenship2 Date: Mon, 17 Aug 2026 03:15:22 -0600 Subject: [PATCH 2/2] clamp light_rt shadow size kv to 6 in game, setting a shadow size to 7 on light_rt causes the shadow atlas to overflow. --- fgd/point/light/light_rt.fgd | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fgd/point/light/light_rt.fgd b/fgd/point/light/light_rt.fgd index 372f2b74f..24ba9a060 100644 --- a/fgd/point/light/light_rt.fgd +++ b/fgd/point/light/light_rt.fgd @@ -3,4 +3,13 @@ sphere(nearz) = light_rt: "An invisible omnidirectional realtime light-source." [ + _initialshadowsize(choices) : "Initial Shadow Size" : 3 : "The initial shadow resolution exponent for shadowed lights. Each increment of one doubles both dimensions of the shadowmap, making shadows appear sharper as a result." = + [ + 1: "1" + 2: "2" + 3: "3" + 4: "4" + 5: "5" + 6: "6" + ] ]