您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

49 行
1.5 KiB

using UnityEngine.Experimental.Rendering.HDPipeline.Internal;
namespace UnityEngine.Experimental.Rendering.HDPipeline
{
public static class ReflectionSystem
{
static ReflectionSystemInternal s_Instance = new ReflectionSystemInternal(ReflectionSystemParameters.Default, null);
public static void SetParameters(ReflectionSystemParameters parameters)
{
s_Instance = new ReflectionSystemInternal(parameters, s_Instance);
}
public static void RegisterProbe(PlanarReflectionProbe planarProbe)
{
s_Instance.RegisterProbe(planarProbe);
}
public static void UnregisterProbe(PlanarReflectionProbe planarProbe)
{
s_Instance.UnregisterProbe(planarProbe);
}
public static void Cull(Camera camera, ReflectionProbeCullResults results)
{
s_Instance.Cull(camera, results);
}
public static void RequestRealtimeRender(PlanarReflectionProbe probe)
{
s_Instance.RequestRealtimeRender(probe);
}
public static void RenderAllRealtimeProbes()
{
s_Instance.RenderAllRealtimeProbes();
}
public static RenderTexture NewRenderTarget(PlanarReflectionProbe probe)
{
return s_Instance.NewRenderTarget(probe);
}
public static void Render(PlanarReflectionProbe probe, RenderTexture target)
{
s_Instance.Render(probe, target);
}
}
}