Skip to content

Instantly share code, notes, and snippets.

@alecmce
Forked from anonymous/gist:6969060
Created October 14, 2013 00:41
Show Gist options
  • Save alecmce/6969067 to your computer and use it in GitHub Desktop.
Save alecmce/6969067 to your computer and use it in GitHub Desktop.
attribute vec3 vertexPosition;
attribute vec4 vertexColor;
attribute vec2 positionOnFace;
uniform mat4 bodyTransform;
uniform mat4 cameraTransform;
varying vec4 color;
varying vec2 texturePosition;
void main(void) {
gl_Position = cameraTransform * bodyTransform * vec4(vertexPosition, 1.0);
color = vertexColor;
texturePosition = positionOnFace;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment