From cdab0086ec6eae662a9c40503f302f391141fbc0 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Fri, 24 Jan 2020 01:56:40 -0600 Subject: example --- src/vs.glsl | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/vs.glsl (limited to 'src/vs.glsl') diff --git a/src/vs.glsl b/src/vs.glsl new file mode 100644 index 0000000..97f4a8f --- /dev/null +++ b/src/vs.glsl @@ -0,0 +1,9 @@ +in vec2 position; +in vec3 color; + +out vec3 v_color; + +void main() { + v_color = color; + gl_Position = vec4(position, 0., 1.); +} -- cgit v1.2.3