saturate()

Started by
0 comments, last by Adaline 11 years, 6 months ago
This must be stupid, how saturate() works, you put any value and how it is exactly tranformed?
Advertisement
Hello smile.png

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.

This topic is closed to new replies.

Advertisement