Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: CG 1.5 and glsl

  1. #1
    Member Regular Contributor
    Join Date
    Apr 2000
    Location
    Portugal
    Posts
    267

    CG 1.5 and glsl

    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

  2. #2
    Member Regular Contributor CrazyButcher's Avatar
    Join Date
    Jan 2004
    Location
    Germany
    Posts
    402

    Re: CG 1.5 and glsl

    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...

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    May 2005
    Location
    Prague, Czech Republic
    Posts
    924

    Re: CG 1.5 and glsl

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •