浏览代码

fix logic of infinite projection for planar

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

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


reflectionProbe.size = size;
reflectionProbe.center = transform.rotation*offset;
}
public override bool infiniteProjection
{
get
{
return base.infiniteProjection || (proxyVolume == null && reflectionProbe.boxProjection);
}
}
}
}

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


set { m_RefreshMode = value; }
}
public virtual bool infiniteProjection
public bool infiniteProjection
return proxyVolume != null && proxyVolume.proxyVolume.shape == ProxyShape.Infinite || m_InfiniteProjection;
return (proxyVolume != null && proxyVolume.proxyVolume.shape == ProxyShape.Infinite)
|| (proxyVolume == null && m_InfiniteProjection);
}
set
{

正在加载...
取消
保存