浏览代码

[PlanarReflection] Fixed standard refection probe proxy volume

/main
Frédéric Vauchelles 7 年前
当前提交
20e8e744
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs
  2. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/ProbeWrapper.cs

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs


case TextureDimension.Cube:
envIndex = m_ReflectionProbeCache.FetchSlice(cmd, probe.texture);
envIndex = envIndex << 1 | (int)EnvCacheType.Cubemap;
capturePosition = (Vector3)influenceToWorld.GetColumn(3) + probe.reflectionProbe.center;
capturePosition = (Vector3)influenceToWorld.GetColumn(3) - probe.reflectionProbe.center;
break;
}
// -1 means that the texture is not ready yet (ie not convolved/compressed yet)

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/ProbeWrapper.cs


get
{
return Matrix4x4.TRS(
(Vector3)probe.localToWorld.GetColumn(3) - probe.center,
(Vector3)probe.localToWorld.GetColumn(3) + probe.center,
probe.localToWorld.rotation,
Vector3.one
);

正在加载...
取消
保存