Skip to content

Instantly share code, notes, and snippets.

@x-labz
Created February 2, 2022 09:52
Show Gist options
  • Save x-labz/b8d5b8746c6c33874c16cd0c02c0f77c to your computer and use it in GitHub Desktop.
Save x-labz/b8d5b8746c6c33874c16cd0c02c0f77c to your computer and use it in GitHub Desktop.
vertex-shader
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