Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetupCameraProperties

Schedules the setup of Camera specific global Shader variables.
Read time 1 minuteLast updated 5 days ago

Definition

SetupCameraProperties(Camera, bool)

Schedules the setup of Camera specific global Shader variables.
public void SetupCameraProperties(Camera camera, bool stereoSetup = false)

Parameters

camera

Camera to setup shader variables for.

stereoSetup

Set up the stereo shader variables and state.

Remarks

This function sets up view, projection and clipping planes global shader variables.
Additionally, if
stereoSetup
is set to true, and single-pass stereo is enabled, stereo-specific shader variables and state are configured.

SetupCameraProperties(Camera, bool, int)

Schedules the setup of Camera specific global Shader variables.
public void SetupCameraProperties(Camera camera, bool stereoSetup, int eye)

Parameters

camera

Camera to setup shader variables for.

stereoSetup

Set up the stereo shader variables and state.

eye

The current eye to be rendered.

Remarks

This function sets up view, projection and clipping planes global shader variables.
Additionally, if
stereoSetup
is set to true, and single-pass stereo is enabled, stereo-specific shader variables and state are configured.