Skip to content

Instantly share code, notes, and snippets.

Created October 14, 2013 00:40
Show Gist options
  • Save anonymous/6969060 to your computer and use it in GitHub Desktop.
Save anonymous/6969060 to your computer and use it in GitHub Desktop.
Anyone know why this doesn't compile to AGAL? I'm running it through nme.display3D.shaders.GlslToAgal and it returns 'null'. Adobe's standalone tool (http://adobe.github.io/glsl2agal/) suggests it's OpenGL ES rather than OpenGL, but I'm not sure why. It compiles and runs fine on WebGL, and I'm having some issues with CPP/iOS but I don't think th…
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