您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
34 行
1.3 KiB
34 行
1.3 KiB
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
using UnityEngine.Experimental.Rendering;
|
|
using System;
|
|
|
|
namespace UnityEngine.Experimental.ScriptableRenderLoop
|
|
{
|
|
public class BaseLightLoop
|
|
{
|
|
// TODO: We should rather put the texture settings in LightLoop, but how do we serialize it ?
|
|
public virtual void Rebuild(TextureSettings textureSettings) {}
|
|
|
|
public virtual void Cleanup() {}
|
|
|
|
public virtual bool NeedResize() { return false; }
|
|
|
|
public virtual void AllocResolutionDependentBuffers(int width, int height) { }
|
|
|
|
public virtual void ReleaseResolutionDependentBuffers() {}
|
|
|
|
public virtual void NewFrame() {}
|
|
|
|
public virtual void PrepareLightsForGPU(CullResults cullResults, Camera camera, ref ShadowOutput shadowOutput) { }
|
|
|
|
// TODO: this should not be aprt of the interface but for now make something working
|
|
public virtual void BuildGPULightLists(Camera camera, RenderLoop loop, RenderTargetIdentifier cameraDepthBufferRT) { }
|
|
|
|
public virtual void PushGlobalParams(Camera camera, RenderLoop loop) {}
|
|
|
|
public virtual void RenderDeferredLighting(Camera camera, RenderLoop renderLoop, RenderTargetIdentifier cameraColorBufferRT) {}
|
|
|
|
public virtual void RenderForward(Camera camera, RenderLoop renderLoop, bool renderOpaque) {}
|
|
}
|
|
}
|