浏览代码

Merge branch 'HDRP/staging' into refactor-reflectionprobe/use-separate-InfluenceVolume-class-for-HDReflectionProbe-too

/main
GitHub 6 年前
当前提交
d7a73902
共有 2 个文件被更改,包括 3 次插入5 次删除
  1. 1
      com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/SerializedHDReflectionProbe.cs
  2. 7
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDAdditionalReflectionData.cs

1
com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/SerializedHDReflectionProbe.cs


weight = addso.Find((HDAdditionalReflectionData d) => d.weight);
multiplier = addso.Find((HDAdditionalReflectionData d) => d.multiplier);
}
public void Update()

7
com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDAdditionalReflectionData.cs


namespace UnityEngine.Experimental.Rendering.HDPipeline
{
[RequireComponent(typeof(ReflectionProbe))]
[ExecuteInEditMode]
[SerializeField, FormerlySerializedAs("version")]
int m_Version;

{
if (m_Version < 3)
{
MigrateToUseInfluanceVolume();
MigrateToHDProbeChild();
}
m_Version = currentVersion;
}

void OnEnable()
{
if (needMigrateToHDProbeChild)
MigrateToUseInfluanceVolume();
MigrateToHDProbeChild();
void OnDisable()
{
influenceVolume.OnSizeChanged -= UpdateLegacySize;

正在加载...
取消
保存