public void End() { foreach (EffectPass pass in effect.CurrentTechnique.Passes) { pass.Apply(); batcher.Draw(device); } }
public void End(Effect customEffect = null) { foreach (EffectPass pass in effect.CurrentTechnique.Passes) { pass.Apply(); if (customEffect != null) { customEffect.Parameters["MatrixTransform"].SetValue(effect.World * effect.View * effect.Projection); customEffect.CurrentTechnique.Passes[0].Apply(); } batcher.Draw(device); } }