Added sample files for glsl.

This commit is contained in:
Max K.
2014-06-26 09:25:40 -05:00
parent b83a364b0e
commit 898f1e215e
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
varying vec4 v_color;
void main()
{
gl_FragColor = v_color;
}

12
samples/GLSL/myvertex.vrx Normal file
View File

@@ -0,0 +1,12 @@
uniform mat4 u_MVPMatrix;
attribute vec4 a_position;
attribute vec4 a_color;
varying vec4 v_color;
void main()
{
v_color = a_color;
gl_Position = u_MVPMatrix * pos;
}