Sign in to follow this  


Recommended Posts

Hello [img][/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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this