GLDEFS light intensity and A_AttachLight intensity, VKDoom edition

This commit is contained in:
nashmuhandes 2025-05-17 21:43:47 +08:00
commit af7c9db9c5
7 changed files with 38 additions and 3 deletions

View file

@ -81,6 +81,7 @@ FSerializer &Serialize(FSerializer &arc, const char *key, FLightDefaults &value,
("spotinner", value.m_spotInnerAngle)
("spotouter", value.m_spotOuterAngle)
("pitch", value.m_pitch)
("lightdefintensity", value.m_LightDefIntensity)
.EndObject();
}
return arc;
@ -127,6 +128,7 @@ void FLightDefaults::ApplyProperties(FDynamicLight * light) const
light->m_active = true;
light->lighttype = m_type;
light->specialf1 = m_Param;
light->lightDefIntensity = m_LightDefIntensity;
light->pArgs = m_Args;
light->pSoftShadowRadius = &SoftShadowRadius;