Game Development Community

Fxrenderobject Cg Shader

by Altair M. Martinez · in Torque Game Engine · 09/17/2005 (11:33 am) · 0 replies

Hello there.

I wanted to render my playable character with Cg shaders. I have included the cg headers and libraries in the visual studio project and made the necessary changes in the cg headers but i haven't included the header into any Torque source code yet. Do you have any suggestions where i could put it? I want it to be optimized and not render the whole scene with cg shaders, just my character.

I also considered using FxObjectRender for this or perhaps use fxobjectrender to put an object that is cg shader rendered inside the game but I have no idea how to use Fxobjectrender. I've been looking for examples in the resource but I can't find any detailed code on any implementation for this. Are there any examples or links that anyone can share please?

Thanks a lot!