Jump to content

  • Log In with Google      Sign In   
  • Create Account


saturate()


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 lomateron   Members   -  Reputation: 300

Like
0Likes
Like

Posted 22 September 2012 - 03:52 AM

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

Sponsor:

#2 Tournicoti   Prime Members   -  Reputation: 682

Like
1Likes
Like

Posted 22 September 2012 - 04:09 AM

Hello Posted Image

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, 22 September 2012 - 04:14 AM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS