model
Introduction
Setting Effects
// Load the effect to use
Effect newEffect = FlatRedBallServices.Load<Effect>(@"Content\myEffect");
// Replace the effects by looping
foreach (ModelMesh mesh in myPositionedModel.XnaModel.Meshes)
{
foreach (ModelMeshPart part in mesh.MeshParts)
{
part.Effect = newEffect;
}
}Getting Textures
Last updated
Was this helpful?