diff --git a/specs/udmf_zdoom.txt b/specs/udmf_zdoom.txt index ff0f50e4a..32f9b7ffb 100644 --- a/specs/udmf_zdoom.txt +++ b/specs/udmf_zdoom.txt @@ -431,6 +431,7 @@ Note: All fields default to false unless mentioned otherwise. lm_sunintensity = ; // lightmap sun intensity multiplier. Default = 1.0 [VKDOOM] lm_ao = ; // enables ambient occlusion baking with VKTool. [VKDOOM] lm_bounce = ; // enables bounce light baking with VKTool. [VKDOOM] + lm_dynamic = ; // enables dynamic lightmap updates for the whole map (without having to do it per sector). Use with care as this can drag down performance. Default = false [VKDOOM] // Dynamic and lightmap light fields [VKDOOM] light_softshadowradius = ; // lightmap light and raytraced dynamic light soft shadow amount. Higher values produce softer shadows. Default = 5.0 [VKDOOM] diff --git a/src/maploader/udmf.cpp b/src/maploader/udmf.cpp index 1fd9869c3..7a2e20b35 100644 --- a/src/maploader/udmf.cpp +++ b/src/maploader/udmf.cpp @@ -792,8 +792,17 @@ public: break; case NAME_light_softshadowradius: + case NAME_light_linearity: + case NAME_light_noshadowmap: + case NAME_light_dontlightactors: + case NAME_light_dontlightmap: + case NAME_light_shadowminquality: case NAME_lm_suncolor: + case NAME_lm_sunintensity: case NAME_lm_sampledist: + case NAME_lm_bounce: + case NAME_lm_ao: + case NAME_lm_dynamic: CHECK_N(Zd | Zdt) break; @@ -2205,6 +2214,7 @@ public: case NAME_lm_sampledist_floor: case NAME_lm_sampledist_ceiling: + case NAME_lm_dynamic: CHECK_N(Zd | Zdt) break; diff --git a/src/namedef_custom.h b/src/namedef_custom.h index cefcd6787..bfa97008c 100644 --- a/src/namedef_custom.h +++ b/src/namedef_custom.h @@ -871,9 +871,17 @@ xx(lm_sampledist_floor) xx(lm_sampledist_ceiling) xx(lm_dynamic) xx(lm_suncolor) +xx(lm_sunintensity) +xx(lm_bounce) +xx(lm_ao) // Light keywords xx(light_softshadowradius) +xx(light_linearity) +xx(light_noshadowmap) +xx(light_dontlightactors) +xx(light_dontlightmap) +xx(light_shadowminquality) xx(skew_bottom_type) xx(skew_middle_type)