diff --git a/test.fs b/test.fs new file mode 100644 index 0000000..3a2f86e --- /dev/null +++ b/test.fs @@ -0,0 +1,5 @@ +varying vec3 V_Color; + +void main() { + gl_FragColor = V_Color; +} diff --git a/test.vs b/test.vs new file mode 100644 index 0000000..bc79c9e --- /dev/null +++ b/test.vs @@ -0,0 +1,12 @@ +attribute vec3 pos; +attribute vec4 color; + +uniform mat4 M; +uniform mat4 V; +uniform mat4 P; + +varying V_Color; + +void main() { + gl_Position=P*V*M*pos; +}