XNA 4.0 Breaking Changes – Effect

The Effect API has been modified in XNA 4.0. Effect parameters work as usual, however the following: effect.Begin(); foreach(EffectPass pass in effect.CurrentTechnique.Passes) { pass.Begin(); // Draw pass.End(); } effect.End(); Is now foreach (EffectPass pass in effect.CurrentTechnique.Passes) { pass.Apply(); // Draw } Or, if you are using a single pass technique effect.CurrentTechnique.Passes[0].Apply(); // Draw

XNA 4.0 Blend States

Opaque (Default): Additive: Alpha: Non Premultiplied:

XNA 4.0 Breaking Changes – RenderTargets

One of the things that has changed with XNA Version 4.0 is RenderTargets. The constructor parameters have changed, as has their interaction with the DepthStencilBuffer class. While previously we had to specify a DepthStencilBuffer instance of the same width, height, and multisampling settings as a render target we were trying to set to the graphics [...]


RECOMMENDED