StartMultiEye
Schedules a fine-grained beginning of stereo rendering on the ScriptableRenderContext.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
StartMultiEye(Camera)
Schedules a fine-grained beginning of stereo rendering on the ScriptableRenderContext.
public void StartMultiEye(Camera camera)
Parameters
Camera to enable stereo rendering on.
Remarks
Activates stereo rendering on the ScriptableRenderContext and camera. When used in conjunction with ScriptableRenderContext.StopMultiEye, these APIs provide fine-grained control of which draw calls are multi-plexed for stereo purposes. For example, you would wrap your opaque and transparent passes with ScriptableRenderContext.StartMultiEye and ScriptableRenderContext.StopMultiEye, but you could exclude your shadow rendering.
Note that only draws are affected by this API. Compute work is not automatically adjusted for stereo, therefore, per-eye compute work must be manually generated.
Additional Resources: ScriptableRenderContext.StopMultiEye, ScriptableRenderContext.SetupCameraProperties, ScriptableRenderContext.StereoEndRender, GetCullingParameters.
StartMultiEye(Camera, int)
Schedules a fine-grained beginning of stereo rendering on the ScriptableRenderContext.
public void StartMultiEye(Camera camera, int eye)
Parameters
Remarks
Activates stereo rendering on the ScriptableRenderContext and camera. When used in conjunction with ScriptableRenderContext.StopMultiEye, these APIs provide fine-grained control of which draw calls are multi-plexed for stereo purposes. For example, you would wrap your opaque and transparent passes with ScriptableRenderContext.StartMultiEye and ScriptableRenderContext.StopMultiEye, but you could exclude your shadow rendering.
Note that only draws are affected by this API. Compute work is not automatically adjusted for stereo, therefore, per-eye compute work must be manually generated.
Additional Resources: ScriptableRenderContext.StopMultiEye, ScriptableRenderContext.SetupCameraProperties, ScriptableRenderContext.StereoEndRender, GetCullingParameters.