Last active
August 3, 2019 16:54
-
-
Save AlainBarrios/12fdd7c6ef13c408fced4e927f5ead35 to your computer and use it in GitHub Desktop.
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
vec2 centerUV(vec2 coord, vec2 coord2){ | |
return (coord - .5 * coord2) / min(coord2.x, coord2.y); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment