RemoveCommandBuffer() private method

private RemoveCommandBuffer ( LightEvent evt, CommandBuffer buffer ) : void
evt LightEvent
buffer CommandBuffer
return void
コード例 #1
0
    /// <summary>
    ///
    /// </summary>
    public void EnableLightShafts()
    {
        if (_lightShaftsCommandBuffer == null)
        {
            InitializeLightShafts();
        }

        Sun.RemoveCommandBuffer(LightEvent.AfterShadowMap, _cascadeShadowCommandBuffer);
        Sun.RemoveCommandBuffer(LightEvent.BeforeScreenspaceMask, _lightShaftsCommandBuffer);

        Sun.AddCommandBuffer(LightEvent.AfterShadowMap, _cascadeShadowCommandBuffer);
        Sun.AddCommandBuffer(LightEvent.BeforeScreenspaceMask, _lightShaftsCommandBuffer);
    }
コード例 #2
0
 static public int RemoveCommandBuffer(IntPtr l)
 {
     try {
         UnityEngine.Light self = (UnityEngine.Light)checkSelf(l);
         UnityEngine.Rendering.LightEvent a1;
         checkEnum(l, 2, out a1);
         UnityEngine.Rendering.CommandBuffer a2;
         checkType(l, 3, out a2);
         self.RemoveCommandBuffer(a1, a2);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
コード例 #3
0
 static int RemoveCommandBuffer(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
         UnityEngine.Rendering.LightEvent    arg0 = (UnityEngine.Rendering.LightEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightEvent));
         UnityEngine.Rendering.CommandBuffer arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer));
         obj.RemoveCommandBuffer(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #4
0
 public static int RemoveCommandBuffer_wrap(long L)
 {
     try
     {
         long nThisPtr         = FCLibHelper.fc_get_inport_obj_ptr(L);
         UnityEngine.Light obj = get_obj(nThisPtr);
         UnityEngine.Rendering.LightEvent    arg0 = (UnityEngine.Rendering.LightEvent)(FCLibHelper.fc_get_int(L, 0));
         UnityEngine.Rendering.CommandBuffer arg1 = FCGetObj.GetObj <UnityEngine.Rendering.CommandBuffer>(FCLibHelper.fc_get_wrap_objptr(L, 1));
         obj.RemoveCommandBuffer(arg0, arg1);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
コード例 #5
0
    static int RemoveCommandBuffer(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.Light.RemoveCommandBuffer");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 3);
            UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
            UnityEngine.Rendering.LightEvent    arg0 = (UnityEngine.Rendering.LightEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightEvent));
            UnityEngine.Rendering.CommandBuffer arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer));
            obj.RemoveCommandBuffer(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }