Skip to content

Instantly share code, notes, and snippets.

@makoConstruct
Last active August 21, 2016 06:13
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 makoConstruct/534c655d52c90df5b9a8066a4d04698b to your computer and use it in GitHub Desktop.
Save makoConstruct/534c655d52c90df5b9a8066a4d04698b to your computer and use it in GitHub Desktop.
precision mediump float;
attribute vec4 a_position;
attribute vec4 a_color;
attribute vec2 a_uv;
attribute vec2 a_angleUnit;
attribute float a_pixelSize;
attribute float a_innerRadius;
uniform mat4 u_projection;
varying vec4 color;
varying vec2 uv;
varying float pixelSize;
varying float innerRadius;
varying vec2 angleUnit;
void main(){
gl_Position = u_projection*a_position;
uv = a_uv;
color = a_color;
pixelSize = a_pixelSize;
innerRadius = a_innerRadius;
angleUnit = a_angleUnit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment