Game Development Community

Objects shader

by Howard Dortch · in Torque Game Engine Advanced · 03/17/2007 (10:02 am) · 1 replies

I created a new basic test game and grabed some of the objects from the demo and dropped them in my test world but the shaders are not working for them.

I put a testSphereThing in my mission which points to this as a datablock.

datablock ItemData( TestSphere )
{
shapeFile = "~/data/shapes/test/sphere_all.dts";
dynamicReflection = true;
};

I dont see anything in there to point this to a shader for it show the material properly.

I added a small pond and the water shader is hooked so I assumed the other shaders would work.

#1
03/17/2007 (10:29 am)
For shaders to work on an object you need to create a Material definition for all of the textures the object uses. Do a search for "materials" on TDN and you'll get lots of information.