From dd8fd986e62e001a7119245a8e6de3e545121635 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 17 Oct 2012 21:18:11 -0700 Subject: Initial import --- data/simple.frag | 6 ++++++ data/simple.vert | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 data/simple.frag create mode 100644 data/simple.vert (limited to 'data') diff --git a/data/simple.frag b/data/simple.frag new file mode 100644 index 0000000..abdaed5 --- /dev/null +++ b/data/simple.frag @@ -0,0 +1,6 @@ +varying vec4 color; + +void main(void) +{ + gl_FragColor = color; +} diff --git a/data/simple.vert b/data/simple.vert new file mode 100644 index 0000000..5987379 --- /dev/null +++ b/data/simple.vert @@ -0,0 +1,11 @@ +uniform mat4 mvp; + +attribute vec4 vert_color; + +varying vec4 color; + +void main(void) +{ + gl_Position = mvp * gl_Vertex; + color = abs(vert_color); +} -- cgit v1.2.3