浏览代码

fix default ReflectoinProbe init

/main
RSlysz 6 年前
当前提交
e08db6e4
共有 3 个文件被更改,包括 20 次插入0 次删除
  1. 4
      com.unity.render-pipelines.high-definition/HDRP/Editor/Lighting/Reflection/HDReflectionProbeEditor.cs
  2. 5
      com.unity.render-pipelines.high-definition/HDRP/AssemblyInfo.cs
  3. 11
      com.unity.render-pipelines.high-definition/HDRP/AssemblyInfo.cs.meta

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


reflectionProbe.Reset();
// To avoid duplicating init code we copy default settings to Reset additional data
// Note: we can't call this code inside the HDAdditionalReflectionData, thus why we don't wrap it in Reset() function
if(HDUtils.s_DefaultHDAdditionalReflectionData.influenceVolume == null)
{
HDUtils.s_DefaultHDAdditionalReflectionData.Awake();
}
HDUtils.s_DefaultHDAdditionalReflectionData.CopyTo(reflectionProbeAdditionalData);
}

5
com.unity.render-pipelines.high-definition/HDRP/AssemblyInfo.cs


using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("Unity.RenderPipelines.HighDefinition.Editor")]
[assembly: InternalsVisibleTo("Unity.RenderPipelines.HighDefinition.Tests")]

11
com.unity.render-pipelines.high-definition/HDRP/AssemblyInfo.cs.meta


fileFormatVersion: 2
guid: e57bf701e9cb4a94dadf8040bc7df0cd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存