Page 1 of 1

nVIDIA Cg Language ?

Posted: Wed Apr 05, 2006 4:59 pm
by Rohit
Hi !
I am new to Shaders .I just started learning nVIDIA's Cg Shader language . But in the documentation of Irrlicht only GLSL and HLSL are written.
Is anybody using Cg(C for Graphics) with Irrlicht ?

Posted: Wed Apr 05, 2006 5:22 pm
by Baal Cadar
Cg is more or less the same as HLSL. You can use your Cg shaders without any changes or with only small ones, depending on the used feature set. This works fine for directx. If you need OpenGL, you have to write a GLSL version of the shader too, as Irrlicht does not currently support Cg.