浏览代码

[PlanarReflection] Render only visible probes

/main
Frédéric Vauchelles 7 年前
当前提交
dc17338f
共有 3 个文件被更改,包括 0 次插入16 次删除
  1. 6
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Reflection/PlanarReflectionProbe.cs
  2. 5
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Reflection/ReflectionSystem.cs
  3. 5
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Reflection/ReflectionSystemInternal.cs

6
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Reflection/PlanarReflectionProbe.cs


#endregion
public void RequestRealtimeRender()
{
if (isActiveAndEnabled)
ReflectionSystem.RequestRealtimeRender(this);
}
void OnEnable()
{
ReflectionSystem.RegisterProbe(this);

5
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Reflection/ReflectionSystem.cs


s_Instance.UnregisterProbe(planarProbe);
}
public static void RequestRealtimeRender(PlanarReflectionProbe probe)
{
s_Instance.RequestRealtimeRender(probe);
}
public static void RenderVisiblePlanarProbes(ReflectionProbeCullResults cullResults, Camera viewer = null)
{
s_Instance.RenderVisiblePlanarProbes(cullResults, viewer);

5
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Reflection/ReflectionSystemInternal.cs


&& renderTexture.useMipMap;
}
public void RequestRealtimeRender(PlanarReflectionProbe probe)
{
m_PlanarReflectionProbe_RequestRealtimeRender.Add(probe);
}
public void Render(PlanarReflectionProbe probe, RenderTexture target, Camera viewerCamera = null)
{
var renderCamera = GetRenderHDCamera(probe);

正在加载...
取消
保存