Skip to content

Instantly share code, notes, and snippets.

@maximiliancsuk
Created May 24, 2017 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maximiliancsuk/dc2e117a8f4ea86dcc22d5a6e12bbbce to your computer and use it in GitHub Desktop.
Save maximiliancsuk/dc2e117a8f4ea86dcc22d5a6e12bbbce to your computer and use it in GitHub Desktop.
Vertex shader for glitch font
uniform mat4 u_projTrans;
attribute vec4 a_position;
attribute vec2 a_texCoord0;
attribute vec4 a_color;
varying vec4 v_color;
varying vec2 v_texCoord;
void main() {
gl_Position = u_projTrans * a_position;
v_texCoord = a_texCoord0;
v_color = a_color;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment