コード例 #1
0
    void UpdateSimpleCommandBuffer()
    {
        if (cam == null || simpleCB == null)
        {
            return;
        }
        else if (initSimpleCB)
        {
            CommonSet.ClearCommandBuffer(cam, ref simpleCB, CameraEvent.BeforeImageEffects);
            cam.AddCommandBuffer(CameraEvent.BeforeImageEffects, simpleCB);
            PrepareSimpleCB(simpleCB);

            initSimpleCB = false;
        }
    }
コード例 #2
0
    void UpdateOpaqueCommandBuffer()
    {
        if (cam == null || opaqueCB == null)
        {
            return;
        }
        else if (initOpaqueCB)
        {
            CommonSet.ClearCommandBuffer(cam, ref opaqueCB, CameraEvent.BeforeForwardAlpha);
            cam.AddCommandBuffer(CameraEvent.BeforeForwardAlpha, opaqueCB);
            PrepareOpaqueCB(opaqueCB);

            initOpaqueCB = false;
        }
    }
コード例 #3
0
 void OnDisable()
 {
     CommonSet.ClearCommandBuffer(cam, ref opaqueCB, CameraEvent.BeforeForwardAlpha);
 }
コード例 #4
0
 void OnDisable()
 {
     CommonSet.ClearCommandBuffer(cam, ref simpleCB, CameraEvent.BeforeImageEffects);
 }