|
|
|
|
|
|
public override void Render(ScriptableRenderContext context, Camera[] cameras) |
|
|
|
{ |
|
|
|
base.Render(context, cameras); |
|
|
|
BeginFrameRendering(cameras); |
|
|
|
RenderPipeline.BeginFrameRendering(cameras); |
|
|
|
|
|
|
|
GraphicsSettings.lightsUseLinearIntensity = true; |
|
|
|
SetupPerFrameShaderConstants(); |
|
|
|
|
|
|
foreach (Camera camera in cameras) |
|
|
|
{ |
|
|
|
BeginCameraRendering(camera); |
|
|
|
RenderPipeline.BeginCameraRendering(camera); |
|
|
|
|
|
|
|
bool sceneViewCamera = camera.cameraType == CameraType.SceneView; |
|
|
|
bool stereoEnabled = XRSettings.isDeviceActive && !sceneViewCamera; |
|
|
|