|
|
|
|
|
|
this.targetDepthBuffer = TargetBuffer.Custom; |
|
|
|
} |
|
|
|
|
|
|
|
protected sealed override void Execute(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult) |
|
|
|
//protected sealed override void Execute(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult)
|
|
|
|
protected sealed override void Execute(CustomPassContext customPassContext) |
|
|
|
if (hdCamera.camera != targetCamera) |
|
|
|
if (customPassContext.hdCamera.camera != targetCamera) |
|
|
|
ExecutePass(renderContext, cmd, hdCamera, cullingResult); |
|
|
|
ExecutePass(customPassContext.renderContext, customPassContext.cmd, customPassContext.hdCamera, customPassContext.cullingResults); |
|
|
|
} |
|
|
|
|
|
|
|
protected abstract void ExecutePass(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult); |
|
|
|