public EffectLayer PostRenderFX(EffectLayer rendered_layer) { EffectLayer returnLayer = new EffectLayer(rendered_layer); if (EnableSmoothing) { EffectLayer previousLayer = new EffectLayer(_PreviousRender); EffectLayer previousSecondLayer = new EffectLayer(_PreviousSecondRender); returnLayer = returnLayer + (previousLayer * 0.50) + (previousSecondLayer * 0.25); //Update previous layers _PreviousSecondRender = _PreviousRender; _PreviousRender = rendered_layer; } //Last PostFX is exclusion if (EnableExclusionMask) { returnLayer.Exclude(ExclusionMask); } returnLayer *= Opacity; return(returnLayer); }