|
|
|
|
|
|
{ |
|
|
|
Lumen = LightUnit.Lumen, |
|
|
|
Luminance = LightUnit.Luminance, |
|
|
|
Ev = LightUnit.Ev, |
|
|
|
Ev100 = LightUnit.Ev100, |
|
|
|
} |
|
|
|
|
|
|
|
enum PunctualLightUnit |
|
|
|
|
|
|
intensity = LightUtils.ConvertAreaLightLumenToLuminance((LightTypeExtent)m_AdditionalLightData.lightTypeExtent.enumValueIndex, intensity, m_AdditionalLightData.shapeWidth.floatValue, m_AdditionalLightData.shapeHeight.floatValue); |
|
|
|
if (oldLightUnit == LightUnit.Luminance && newLightUnit == LightUnit.Lumen) |
|
|
|
intensity = LightUtils.ConvertAreaLightLuminanceToLumen((LightTypeExtent)m_AdditionalLightData.lightTypeExtent.enumValueIndex, intensity, m_AdditionalLightData.shapeWidth.floatValue, m_AdditionalLightData.shapeHeight.floatValue); |
|
|
|
if (oldLightUnit == LightUnit.Luminance && newLightUnit == LightUnit.Ev) |
|
|
|
if (oldLightUnit == LightUnit.Luminance && newLightUnit == LightUnit.Ev100) |
|
|
|
if (oldLightUnit == LightUnit.Ev && newLightUnit == LightUnit.Luminance) |
|
|
|
if (oldLightUnit == LightUnit.Ev100 && newLightUnit == LightUnit.Luminance) |
|
|
|
if (oldLightUnit == LightUnit.Ev && newLightUnit == LightUnit.Lumen) |
|
|
|
if (oldLightUnit == LightUnit.Ev100 && newLightUnit == LightUnit.Lumen) |
|
|
|
if (oldLightUnit == LightUnit.Lumen && newLightUnit == LightUnit.Ev) |
|
|
|
if (oldLightUnit == LightUnit.Lumen && newLightUnit == LightUnit.Ev100) |
|
|
|
intensity = LightUtils.ConvertAreaLightLumenToEv((LightTypeExtent)m_AdditionalLightData.lightTypeExtent.enumValueIndex, intensity, m_AdditionalLightData.shapeWidth.floatValue, m_AdditionalLightData.shapeHeight.floatValue); |
|
|
|
|
|
|
|
m_AdditionalLightData.intensity.floatValue = intensity; |
|
|
|