Game Development Community

Shaders?

by Gabriel De Repentigny · in Torque Game Engine · 10/07/2003 (1:24 pm) · 2 replies

Hey there,

has anyone tried implementing shaders in torque? using CG or OpenGL extenstions? anyone know how hard this would be?

#1
10/07/2003 (2:21 pm)
I'd say moderately difficult. Getting the shaders in there isn't the problem. I have heard that a fair number of folks on here have done so already. You've just got to include the proper headers/libraries and then enable the shader states.

Now, getting the shaders to work with Torque's lighting system is the main issue. More than likely I would just redo it all and use my own model.

Implementing shader support would require adding it to the various components (3space objects, interiors, etc.) that you want to support shaders, so having a good understanding of how they all work together would be necessary. You'd need to add the additional data (for normals, bumping, etc.) on top of what is stored for standard .dts/.dif/etc.
#2
10/07/2003 (5:58 pm)
Chris "Hobbiticus" Weiland has/is impementing CG.

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=4660