1964js/shaders/triangle-vertex.shader
Derek "Turtle" Roe 8b7996442b See long description
Add .gitattributes
Add .gitignore
Update README to GitHub-flavored Markdown
Fix shader files on Windows and on systems that don't handle files
without extensions well
2016-01-02 00:42:39 -06:00

15 lines
No EOL
423 B
GLSL

attribute vec3 aVertexPosition;
attribute vec4 aVertexColor;
attribute vec2 aTextureCoord;
uniform mat4 uMVMatrix;
uniform mat4 uPMatrix;
varying lowp vec4 vColor;
varying vec2 vTextureCoord;
void main(void) {
gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);
vColor = aVertexColor;
vTextureCoord = aTextureCoord;
}