public override void Execute(ScriptableRenderContext context, ref RenderingData renderingData) { if (colorTintMat == null) { UnityEngine.Debug.LogError("Material is null"); return; } if (!renderingData.cameraData.postProcessEnabled) { return; } //判读后效模块是否开启 var stack = VolumeManager.instance.stack; colorTint = stack.GetComponent <ColorTint>(); if (colorTint == null) { return; } if (!colorTint.IsActive()) { return; } var cmd = CommandBufferPool.Get(m_ProfilerTag); context.ExecuteCommandBuffer(cmd); CommandBufferPool.Release(cmd); }