private void OnEnable()
 {
     if (BeamGeometry.IsUsingCustomRenderPipeline())
     {
         RenderPipelineManager.beginCameraRendering += new Action <ScriptableRenderContext, Camera>(this.OnBeginCameraRendering);
     }
 }
Exemplo n.º 2
0
 private void OnEnable()
 {
     if (!BeamGeometry.IsUsingCustomRenderPipeline())
     {
         return;
     }
     RenderPipeline.add_beginCameraRendering(new Action <Camera>(this.OnBeginCameraRendering));
 }
 private void OnWillRenderObject()
 {
     if (!BeamGeometry.IsUsingCustomRenderPipeline())
     {
         Camera camera = Camera.current;
         if (camera != null)
         {
             this.UpdateCameraRelatedProperties(camera);
         }
     }
 }
Exemplo n.º 4
0
        private void OnWillRenderObject()
        {
            if (BeamGeometry.IsUsingCustomRenderPipeline())
            {
                return;
            }
            Camera current = Camera.get_current();

            if (!Object.op_Inequality((Object)current, (Object)null))
            {
                return;
            }
            this.UpdateCameraRelatedProperties(current);
        }