浏览代码

Merge pull request #683 from Unity-Technologies/hdlighteditor-fix

HDLightEditor: moved Range to Light Shape and removed it for Directional lights
/feature-ReflectionProbeFit
GitHub 7 年前
当前提交
1f062146
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDLightEditor.cs

4
ScriptableRenderPipeline/HDRenderPipeline/Editor/Lighting/HDLightEditor.cs


{
m_LightShape = (LightShape)EditorGUILayout.Popup(s_Styles.shape, (int)m_LightShape, s_Styles.shapeNames);
if (m_LightShape != LightShape.Directional)
settings.DrawRange(false);
// LightShape is HD specific, it need to drive LightType from the original LightType
// when it make sense, so the GI is still in sync with the light shape
switch (m_LightShape)

settings.DrawColor();
settings.DrawIntensity();
settings.DrawBounceIntensity();
settings.DrawRange(false);
settings.DrawLightmapping();
// No cookie with area light (maybe in future textured area light ?)

正在加载...
取消
保存