浏览代码

renamed EV to EV100

/main
Antoine Lelievre 6 年前
当前提交
f0d21faf
共有 2 个文件被更改,包括 7 次插入7 次删除
  1. 10
      com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/HDLightEditor.cs
  2. 4
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Light/HDAdditionalLightData.cs

10
com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/HDLightEditor.cs


{
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;

4
com.unity.render-pipelines.high-definition/HDRP/Lighting/Light/HDAdditionalLightData.cs


Candela,
Lux,
Luminance,
Ev,
Ev100,
}
// Light layering

else
m_Light.intensity = LightUtils.ConvertAreaLightLumenToLuminance(lightTypeExtent, intensity, shapeWidth, shapeHeight);
}
else if (lightUnit == LightUnit.Ev)
else if (lightUnit == LightUnit.Ev100)
{
m_Light.intensity = LightUtils.ConvertEvToLuminance(intensity);
}

正在加载...
取消
保存