• Advertisement

Archived

This topic is now archived and is closed to further replies.

handling cg and cgfx

This topic is 5286 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I recently got cg working in my engine, and was thinking about implementing my engine so it suports cgfx files, is there some sort of runtime library to help read this file format, and im just wondering how other people have implemented cgfx formats for thier engine. It would be nice to just say for a particular model "load that cgfx file and use it" but can that be done? what about all the parameters and vertex declarations for the shaders?

Share this post


Link to post
Share on other sites
Advertisement
Again I say...

Why are you using Cg, instead of HLSL?

And look at the D3DX Effects framework. It might do what you want.

I like pie.

Share this post


Link to post
Share on other sites

  • Advertisement