OGSL vs. CG

Started by
1 comment, last by Promit 18 years, 5 months ago
Hello, I hope that this issue wasn't discussed to often (at least, I did not find something). I want to integrate shaders into my OpenGL App. Now I have the choice between OGSL and CG. What of those would you recommend? greetings,
Advertisement
Personally, I'm a fan of GLSL, however it depends on your target specs.

If you are targetting recent hardware with DX9 class hardware GLSL is the way forward, if you want to include pre-GFFX hardware from NV then Cg will let you work with them.
Cg can support all shader levels on NV cards, but only the basic arbvp1 and arbfp1 on ATI cards. You have to use GLSL to access Shader 2.0+ features universally in OGL. Conversely, GLSL can't be used on cards that are less than Shader 2, so you have to use arbvp1 and arbfp1, through Cg or directly.
SlimDX | Ventspace Blog | Twitter | Diverse teams make better games. I am currently hiring capable C++ engine developers in Baltimore, MD.

This topic is closed to new replies.

Advertisement