Created
October 14, 2013 00:40
-
-
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…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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