diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/simple.frag | 6 | ||||
-rw-r--r-- | data/simple.vert | 11 |
2 files changed, 17 insertions, 0 deletions
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); +} |