This must be stupid, how saturate() works, you put any value and how it is exactly tranformed?
1 reply to this topic
Sponsor:
#2 Members - Reputation: 491
Posted 22 September 2012 - 04:09 AM
Hello 
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.
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.






