diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2020-01-24 01:56:40 -0600 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2020-01-24 01:56:40 -0600 |
commit | cdab0086ec6eae662a9c40503f302f391141fbc0 (patch) | |
tree | 077f43fdc2a371bcab8ecac12a8b78d3ac035f86 /src/vs.glsl |
example
Diffstat (limited to 'src/vs.glsl')
-rw-r--r-- | src/vs.glsl | 9 |
1 files changed, 9 insertions, 0 deletions
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.); +} |