Game Development Community

Changing Textures or Matirals.cs files HOW MS4..

by Adam Wilson · in Game Design and Creative Issues · 12/21/2006 (8:05 am) · 1 replies

All right I have this materials.cs file for an earth I and I wild like to be abele to change the textures. My search on the forms I have come up empty handed.. if some one could point me in the right direction and or explain how to set up some function to be able to change textures in game that would be great..

#1
12/21/2006 (8:07 am)
Materials.cs
new Material(Earth)
{
   baseTex[0] = "Earth";
   bumpTex[0] = "EarthBump";
   //
   pixelSpecular[0] = true;
   specular[0] = "0.2 0.2 0.2 1.0";
   specularPower[0] = 12.0;
};