/// <summary> /// Render this layer's target. This is called immediately after all the Renderables /// have been rendered, and immediately before PostRender. /// </summary> protected override void RenderLayerTarget() { rp.UnlockMatrix(); rp.UnsetRenderTarget(); rp.ClearRenderProperties(); rp.SetRenderProperties( SpriteSortMode.Immediate, BlendState.AlphaBlend, m: TargetToScreenTransform); rp.Render(LayerTarget, Vector2.Zero); rp.ClearRenderProperties(); }