UnityEngine.Light.RemoveCommandBuffer C# (CSharp) Method

RemoveCommandBuffer() private method

private RemoveCommandBuffer ( LightEvent evt, CommandBuffer buffer ) : void
evt LightEvent
buffer CommandBuffer
return void
        public extern void RemoveCommandBuffer(LightEvent evt, CommandBuffer buffer);
        /// <summary>

Usage Example

コード例 #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);
    }
All Usage Examples Of UnityEngine.Light::RemoveCommandBuffer