浏览代码

Fixed issues with latest HDRP

unprotected multiplier and weight on HDProbe.
Fixed reference to influenceShape setting which is now influenceVolume.shape
/main
laurenth-unity 6 年前
当前提交
4339f090
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 6
      com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/HDLightExplorerExtension.cs
  2. 4
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDProbe.cs

6
com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/HDLightExplorerExtension.cs


new LightingExplorerTableColumn(LightingExplorerTableColumn.DataType.Enum, HDStyles.ReflectionProbeShape, "m_Mode", 60, (r, prop, dep) => // 3: Shape
{
ReflectionProbe probe = prop.serializedObject.targetObject as ReflectionProbe;
ShapeType influenceShape = reflectionProbeDataPairing[probe].influenceShape;
InfluenceShape influenceShape = reflectionProbeDataPairing[probe].influenceVolume.shape;
influenceShape = (ShapeType)EditorGUI.EnumPopup(r, influenceShape);
influenceShape = (InfluenceShape)EditorGUI.EnumPopup(r, influenceShape);
reflectionProbeDataPairing[probe].influenceShape = influenceShape;
reflectionProbeDataPairing[probe].influenceVolume.shape = influenceShape;
}
}),
new LightingExplorerTableColumn(LightingExplorerTableColumn.DataType.Float, HDStyles.ReflectionProbeShadowDistance, "m_ShadowDistance", 90), // 4: Shadow distance

4
com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDProbe.cs


public InfluenceVolume influenceVolume { get { return m_InfluenceVolume; } private set { m_InfluenceVolume = value; } }
/// <summary>Multiplier factor of reflection (non PBR parameter).</summary>
public float multiplier { get { return m_Multiplier; } protected set { m_Multiplier = value; } }
public float multiplier { get { return m_Multiplier; } set { m_Multiplier = value; } }
public float weight { get { return m_Weight; } protected set { m_Weight = value; } }
public float weight { get { return m_Weight; } set { m_Weight = value; } }
/// <summary>The capture mode.</summary>
public virtual ReflectionProbeMode mode

正在加载...
取消
保存