SetupCameraProperties
Schedules the setup of Camera specific global Shader variables.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
SetupCameraProperties(Camera, bool)
Schedules the setup of Camera specific global Shader variables.
public void SetupCameraProperties(Camera camera, bool stereoSetup = false)
Parameters
Remarks
This function sets up view, projection and clipping planes global shader variables.
Additionally, if is set to true, and single-pass stereo is enabled, stereo-specific shader variables and state are configured.
stereoSetupAdditional Resources: ScriptableRenderContext.StartMultiEye, ScriptableRenderContext.StopMultiEye, ScriptableRenderContext.StereoEndRender, GetCullingParameters.
SetupCameraProperties(Camera, bool, int)
Schedules the setup of Camera specific global Shader variables.
public void SetupCameraProperties(Camera camera, bool stereoSetup, int eye)
Parameters
Remarks
This function sets up view, projection and clipping planes global shader variables.
Additionally, if is set to true, and single-pass stereo is enabled, stereo-specific shader variables and state are configured.
stereoSetupAdditional Resources: ScriptableRenderContext.StartMultiEye, ScriptableRenderContext.StopMultiEye, ScriptableRenderContext.StereoEndRender, GetCullingParameters.