Page 1 of 1
Why Irrlicht doesn't support Cg and CgFX ?
Posted: Mon Feb 12, 2007 9:37 am
by marco.siino
There is a particular reason for which irrlicht doesn't support Cg and CgFX ? I want to try to implement it, but first i want to know if there is a reason for which it has not be done before (incompatibilities, etc...)
THanks!
Posted: Mon Feb 12, 2007 9:50 am
by hybrid
Cg needs external libraries to do the same thing as all the other shaders AFAIK. So it would be better to use a Cg compiler initially and put the generated shader into the app. But since many people like Cg it might become part of the contribution files of Irrlicht.
Posted: Mon Feb 12, 2007 10:14 am
by marco.siino
I think an effect shader might be useful more than Cg itself. But DirectX FX files are not cross platform, so i think CgFX support in Irrlicht could be an useful thing. I think external libraries is not a very big problem...
Posted: Tue Feb 13, 2007 12:41 am
by Electron
I believe Cg shaders are the only fully cross-platform shaders in the sense that a cg shader can be compiled for use with directx or opengl, and the Cg API provides functions for handling Cg shaders in both OpenGL and DirectX . To the best of my knowledge this is not possible with HLSL or GLSL, although both of those language obviously have their own advantages.