diff options
Diffstat (limited to 'examples/render-quad/src/data/shader.vert')
-rw-r--r-- | examples/render-quad/src/data/shader.vert | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/render-quad/src/data/shader.vert b/examples/render-quad/src/data/shader.vert new file mode 100644 index 0000000..5ca3090 --- /dev/null +++ b/examples/render-quad/src/data/shader.vert @@ -0,0 +1,16 @@ +#version 450 + +layout (location = 0) in vec2 position; +layout (location = 1) in vec3 color; + +out gl_PerVertex { + vec4 gl_Position; +}; +layout (location = 1) out vec3 frag_color; + + +void main() +{ + gl_Position = vec4(position, 0.5, 1.0); + frag_color = color; +}
\ No newline at end of file |