Method OnCameraSetup
OnCameraSetup(CommandBuffer, ref RenderingData)
This method is called by the renderer before rendering a camera
Override this method if you need to to configure render targets and their clear state, and to create temporary render target textures.
If a render pass doesn't override this method, this render pass renders to the active Camera's render target.
You should never call CommandBuffer.SetRenderTarget. Instead call ConfigureTarget and ConfigureClear.
선언
public override void OnCameraSetup(CommandBuffer cmd, ref RenderingData renderingData)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| CommandBuffer | cmd | CommandBuffer to enqueue rendering commands. This will be executed by the pipeline. |
| RenderingData | renderingData | Current rendering state information |