Game Development Community

New to shaders

by Tom · in Torque Game Engine Advanced · 04/10/2006 (4:45 pm) · 2 replies

Hi,
i'm new to shaders and the TSE. when i saw the tse demo, they talked about hardware shaders and costum shaders.
i read up on shaders a litte but couldn't find what i was looking for.

my questions is: do i need to write a huge comples file for every shader or just for my costume shader???

are their any ready-to-use shaders?

how would i add a simple reflection shader to a blade? (like do i need to create a file that explains how the light reflects, or could i be like, use reflection shader here.)

#1
04/11/2006 (8:51 am)
TSE supports planar reflection and cube mapping. For a weapon(sword/blade), you'll want to use cube mapping. I think there's a stock bump-cube map shader that you can use with a custom material and dynamic cubemaps to get the effect you want(if you can get dynamic cube mapping to work...).
#2
04/14/2006 (4:22 pm)
Tom: read the stuff about TSE materials on TDN.

Its basically a text entry in materials.cs for each surface.