- renamed ADynamicLight's intensity properties to radius, to have their name match their meaning.
This commit is contained in:
parent
357869a7b5
commit
faeb0303fe
3 changed files with 25 additions and 26 deletions
|
|
@ -176,8 +176,8 @@ void FLightDefaults::ApplyProperties(ADynamicLight * light) const
|
|||
light->SetOffset(m_Pos);
|
||||
light->halo = m_halo;
|
||||
for (int a = 0; a < 3; a++) light->args[a] = clamp<int>((int)(m_Args[a] * gl_lights_intensity), 0, 255);
|
||||
light->m_intensity[0] = int(m_Args[LIGHT_INTENSITY]);
|
||||
light->m_intensity[1] = int(m_Args[LIGHT_SECONDARY_INTENSITY]);
|
||||
light->m_Radius[0] = int(m_Args[LIGHT_INTENSITY]);
|
||||
light->m_Radius[1] = int(m_Args[LIGHT_SECONDARY_INTENSITY]);
|
||||
light->flags4 &= ~(MF4_ADDITIVE | MF4_SUBTRACTIVE | MF4_DONTLIGHTSELF);
|
||||
if (m_subtractive) light->flags4 |= MF4_SUBTRACTIVE;
|
||||
if (m_additive) light->flags4 |= MF4_ADDITIVE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue