/// <summary> /// Initializes a new instance of the MaterialProcessor class. /// </summary> public MaterialProcessor() { colorKeyColor = Color.Magenta; colorKeyEnabled = true; defaultEffect = MaterialProcessorDefaultEffect.BasicEffect; generateMipmaps = false; premultiplyTextureAlpha = true; resizeTexturesToPowerOfTwo = true; textureFormat = TextureProcessorOutputFormat.Color; }
/// <summary> /// Helper method which returns the material for a default effect. /// </summary> /// <returns>A material.</returns> public static MaterialContent CreateDefaultMaterial(MaterialProcessorDefaultEffect effect) { switch (effect) { case MaterialProcessorDefaultEffect.BasicEffect: return(new BasicMaterialContent()); case MaterialProcessorDefaultEffect.SkinnedEffect: return(new SkinnedMaterialContent()); case MaterialProcessorDefaultEffect.EnvironmentMapEffect: return(new EnvironmentMapMaterialContent()); case MaterialProcessorDefaultEffect.DualTextureEffect: return(new DualTextureMaterialContent()); case MaterialProcessorDefaultEffect.AlphaTestEffect: return(new AlphaTestMaterialContent()); default: throw new ArgumentOutOfRangeException(); } }
public GpuAnimatedModelProcessor() { DefaultEffect = MaterialProcessorDefaultEffect.SkinnedEffect; }