Whats wrong with this shader?
by Jon C · in Torque Game Engine Advanced · 10/17/2005 (4:24 am) · 22 replies
Quote:
new Material(founty)
{
baseTex[0] = "testmap";
bumpTex[0] = "testmap_bump";
cubemap = WChrome;
pixelSpecular[0] = true;
specular[0] = "0.8 0.8 0.8 1.0";
specularPower[0] = 12.0;
};
Its in the folder: example\terrain_water_demo\data\shapes\founty
With founty.dts, materials.cs (The material itself), materials.cs.dso, testmap.png (1024x1024), testmap_bump.png (512x512)
I'm obviously using Terrain_water_demo.
Every time I add it to the scene, it doesn't have any of the shader effects... I use reloadMaterials(); - nothing, relight scene? Nothing.
Nothing I do ever makes this shader appear on the texture, on my model.
Whats going on? What am I doing wrong?
#22
10/23/2005 (6:29 pm)
I'm using png and did not include extension .png .....
Torque Owner Robin Degen