OGSL vs. CG
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,
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement