PDA

View Full Version : GLSL vs. Cg (with GLSL profile)



robosport
03-26-2007, 07:23 PM
What is the difference between GLSL and Cg (with the newly added GLSL profile) from NVIDIA? What does "with GLSL profile" mean?

If there is a difference, how come the NVIDIA FX Composer doesn't support GLSL directly?

Thank you.

sqrt[-1]
03-26-2007, 07:38 PM
GLSL profile means you can compile Cg into GLSL.

robosport
03-26-2007, 07:49 PM
So, just to make sure I understand this, the new FX Composer announced at GDC will output GLSL fragment and vertex scripts as a result of the interactive design session/actions?

Does that mean you can take an HLSL shader from the NVIDIA shader library and generate a GLSL pair from it?

jra101
03-28-2007, 12:30 PM
Originally posted by robosport:
So, just to make sure I understand this, the new FX Composer announced at GDC will output GLSL fragment and vertex scripts as a result of the interactive design session/actions?FX Composer 2.0 will let you write GLSL shaders, yes.


Originally posted by robosport:
Does that mean you can take an HLSL shader from the NVIDIA shader library and generate a GLSL pair from it? Yes, the Cg 1.5 compiler can do this.

robosport
03-28-2007, 01:22 PM
Thank you.