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: saturate() ???

  1. #1
    Intern Newbie
    Join Date
    Apr 2004
    Posts
    45

    saturate() ???

    is there any saturate function in glsl??? there are a lot of examples within this function call, but didn't find it in the spezification and while compiling my source i get an error .. so whats up with it??? any ideas??? thx

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Oct 2001
    Posts
    596

    Re: saturate() ???

    Sure you're looking at glsl examples and not hlsl or cg? either way, a saturate in glsl is 'res = clamp(value,0.0,1.0);'

  3. #3
    Intern Newbie
    Join Date
    Apr 2004
    Posts
    45

    Re: saturate() ???

    thx

Posting Permissions

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