PDA

View Full Version : CG 1.5 and glsl



Bruno
04-17-2007, 11:27 AM
Hi,

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.

thanks,
Bruno

CrazyButcher
04-17-2007, 02:40 PM
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...

Komat
04-18-2007, 01:09 AM
The command line Cg compiler tool can compile GLSL code when -oglsl parameter is specified.