@ -0,0 +1,5 @@
varying vec3 V_Color;
void main() {
gl_FragColor = V_Color;
}
@ -0,0 +1,12 @@
attribute vec3 pos;
attribute vec4 color;
uniform mat4 M;
uniform mat4 V;
uniform mat4 P;
varying V_Color;
gl_Position=P*V*M*pos;