Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

saturate()

4: Adsense

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   

491
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?

#2 Tournicoti   Prime Members   

704
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.