• Advertisement
Sign in to follow this  

saturate()

This topic is 1945 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This must be stupid, how saturate() works, you put any value and how it is exactly tranformed?

Share this post


Link to post
Share on other sites
Advertisement
Hello [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]

saturate(x) will clamp x between 0.0 and 1.0

saturate(-0.5) = 0.0
saturate(0.5) = 0.5
saturate(1.5) = 1.0
and so on

nb : x can be a scalar or even a vector ( or even a matrix). In this case, it operates on each component. Edited by Tournicoti

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement