Version: 2023.1

CommandBuffer.SetupCameraProperties

切换到手册
public void SetupCameraProperties (Camera camera);

参数

camera 要为其设置着色器变量的摄像机。

描述

调度特定于摄像机的全局着色器变量的设置。

This function sets up view, projection and clipping planes global shader variables. This command is essentially the same to ScriptableRenderContext.SetupCameraProperties.