Created
February 2, 2022 09:52
-
-
Save x-labz/b8d5b8746c6c33874c16cd0c02c0f77c to your computer and use it in GitHub Desktop.
vertex-shader
This file contains hidden or 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
attribute vec2 a_position; | |
attribute vec2 a_texCoord; | |
uniform vec2 u_resolution; | |
varying vec2 v_texCoord; | |
void main() { | |
gl_Position = vec4(( (a_position / u_resolution * 2.0) - 1.0) * vec2(1, -1), 0, 1); | |
v_texCoord = a_texCoord; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment