Game Development Community

How do i put norrmall mapping into TGEA ?

by Tom Timothy · in Torque Game Engine Advanced · 02/02/2008 (11:26 am) · 1 replies

Just looking for some instuctions to get me started

#1
02/03/2008 (5:24 am)
In the directory of your texture you will need to make a materials.cs file. Paste something like this inside of it:

new Material(uniquematerialname)
{
   baseTex[0] = "mytexturefilename";
   bumpTex[0] = "mynormalmapfilename";
   pixelSpecular[0] = true;
   specular[0] = "0.25 0.25 0.25 0.75";
   specularPower[0] = 1.0;
};

Note the three specular lines are not necessary for a normal map but that's how you set up the specular highlights.