浏览代码

Fix migration issue with ReflectionProbe box size

/main
RSlysz 6 年前
当前提交
9122c08e
共有 3 个文件被更改,包括 6 次插入11 次删除
  1. 3
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDAdditionalReflectionData.cs
  2. 7
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/HDProbe.cs
  3. 7
      com.unity.render-pipelines.high-definition/HDRP/Lighting/Reflection/Volumes/InfluenceVolume.cs

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


void MigrateToUseInfluenceVolume()
{
influenceVolume.boxSize = legacyProbe.size;
influenceVolume.shape = influenceShape;
influenceVolume.shape = influenceShape; //must be done after each size transfert
influenceVolume.boxBlendDistancePositive = blendDistancePositive;
influenceVolume.boxBlendDistanceNegative = blendDistanceNegative;
influenceVolume.boxBlendNormalDistancePositive = blendNormalDistancePositive;

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


get { return m_RefreshMode; }
set { m_RefreshMode = value; }
}
influenceVolume = new InfluenceVolume(this);
else
influenceVolume.Init(this);
influenceVolume = new InfluenceVolume();
influenceVolume.Init(this);
}
void ISerializationCallbackReceiver.OnBeforeSerialize()

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


/// Value between 0 (on InfluenceVolume hull) and sphereRadius (fade sub volume reduced to a point).
/// </summary>
public float sphereBlendNormalDistance { get { return m_SphereBlendNormalDistance; } set { m_SphereBlendNormalDistance = value; } }
internal InfluenceVolume(HDProbe probe)
{
Init(probe);
}
internal void Init(HDProbe probe)
{
this.probe = probe;

正在加载...
取消
保存