All pastes #938868 Raw Edit

Untitled

public text v1 · immutable
·published 2008-03-11 22:08 UTC
rendered paste body
spriteBatch.Begin(SpriteBlendMode.Additive, SpriteSortMode.Immediate, SaveStateMode.None);

mEffect.Begin();

mEffect.CurrentTechnique.Passes[0].Begin();

for (int i = 0; i < colorList.Count; i++)
{
    mColor.SetValue(colorList[i]);
    mEffect.CommitChanges();

    spriteBatch.Draw(texture, rectangle, Color.White);
}

mEffect.CurrentTechnique.Passes[0].End();

mEffect.End();

spriteBatch.End();