# SetupCameraProperties

> Schedules the setup of Camera specific global Shader variables.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Rendering](/engine/6000.6/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

## SetupCameraProperties(Camera, bool)

Schedules the setup of Camera specific global Shader variables.

```csharp
public void SetupCameraProperties(Camera camera, bool stereoSetup = false)
```

### Parameters

**** (\[Camera]\(/engine/6000.6/script-reference/unityengine/camera)): Camera to setup shader variables for.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): 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.

Additional Resources: [ScriptableRenderContext.StartMultiEye](/engine/6000.6/script-reference/unityengine/rendering/scriptablerendercontext/startmultieye.md), [ScriptableRenderContext.StopMultiEye](/engine/6000.6/script-reference/unityengine/rendering/scriptablerendercontext/stopmultieye.md), [ScriptableRenderContext.StereoEndRender](/engine/6000.6/script-reference/unityengine/rendering/scriptablerendercontext/stereoendrender.md), GetCullingParameters.

## SetupCameraProperties(Camera, bool, int)

Schedules the setup of Camera specific global Shader variables.

```csharp
public void SetupCameraProperties(Camera camera, bool stereoSetup, int eye)
```

### Parameters

**** (\[Camera]\(/engine/6000.6/script-reference/unityengine/camera)): Camera to setup shader variables for.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Set up the stereo shader variables and state.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): 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.

Additional Resources: [ScriptableRenderContext.StartMultiEye](/engine/6000.6/script-reference/unityengine/rendering/scriptablerendercontext/startmultieye.md), [ScriptableRenderContext.StopMultiEye](/engine/6000.6/script-reference/unityengine/rendering/scriptablerendercontext/stopmultieye.md), [ScriptableRenderContext.StereoEndRender](/engine/6000.6/script-reference/unityengine/rendering/scriptablerendercontext/stereoendrender.md), GetCullingParameters.
