SetupCameraProperties
Schedules the setup of Camera specific global Shader variables.
Read time 1 minuteLast updated 6 days ago
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.