XNA- Texturing problem, exporting model
- by user1806687
How,can I disable coloring when texture is applied, because right now
the texture is being colored over.
foreach (BasicEffect effect in mesh.Effects)
{
effect.TextureEnabled = textureApplied;
if(textureApplied)
effect.Texture = Texture2D.FromStream(GraphicsDevice,System.IO.File.OpenRead(texturePath));
else
{
effect.DiffuseColor = ti.DiffuseColor;
effect.EmissiveColor = ti.EmissiveColor;
}
...
}
mesh.Draw();
Also, is there any easy way for xna to export models? Or do I have to write my own?