• Advertisement
Sign in to follow this  

Cg and a CgFX shader file

This topic is 4149 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

What is the difference between Cg and a CgFX shader file? Should I learn CgFX for NVIDIA FX composer?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by akira32
Should I learn CgFX for NVIDIA FX composer?

I don't really know that much about CG (other than random complaints people have), but IIRC FX Composer only authors HLSL effects. The big use of CG seems to be if you need a cross-platform shading language/interface (generally, if you are working with OpenGL).

Share this post


Link to post
Share on other sites
Although CgFX shading language is very similar to HLSL language, you can't produce CgFX shaders using FXComposer.

By the way, does anybody know an IDE for creating CgFX shaders? I couldn't find one.

Share this post


Link to post
Share on other sites
Quote:
Original post by glJack
By the way, does anybody know an IDE for creating CgFX shaders? I couldn't find one.


Notepad

Share this post


Link to post
Share on other sites
CG is a sub-set of CGFX. CGFX includes the FX framework for encapsulating CG pixel and vertex function in "techniques" and "passes". It doesn't add any functionality but it make it easy to handle multiple techniques/passes.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement