Created
January 23, 2018 22:46
-
-
Save companje/29408948f1e8be54dd5733a74ca49bb9 to your computer and use it in GitHub Desktop.
map() function for GLSL known from Processing & openFrameworks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float map(float value, float min1, float max1, float min2, float max2) { | |
return min2 + (value - min1) * (max2 - min2) / (max1 - min1); | |
} |
LIFE SAVIOR
thanks
thanks!
Thanks!
Thanks!
goat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!