CG 1.5 and glsl


Anyone knows if it’s possible to compile and run a GLSL shader using cg 1.5 ?
I added some glsl shaders, and placed the glslv and glslf profile in the shaders, but the compiler reports compile errors everywhere.


the point of the profiles is to compile Cg code into GLSL. It should work, I saw several errors when trying to access glstate, however I was told that cg 2.0 will improve there. You cannot pass GLSL code…

The command line Cg compiler tool can compile GLSL code when -oglsl parameter is specified.