im new here I want to know how it work
Hi guygcpg,
It’s a fast (almost free) way of clamping the value between 0.0 and 1.0.
Check out:
2 Likes
Saturate cuts the values off at 0 and 1, keeping the value in that range.
A Clamp does the same thing but you can define the numbers the value is chopped-off at but it’s more expensive (a little) vs the normalize 0-1 range. A clamp at 0-1 is a saturate and the compiler will swap that out for you.
You’ll want to check up into this guy for details: https://www.youtube.com/channel/UCOVfF7PfLbRdVEm0hONTrNQ
4 Likes