diff options
Diffstat (limited to 'stockton-render/src/draw/data/stockton.vert')
-rw-r--r-- | stockton-render/src/draw/data/stockton.vert | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/stockton-render/src/draw/data/stockton.vert b/stockton-render/src/draw/data/stockton.vert index f6cafa9..f40d0b8 100644 --- a/stockton-render/src/draw/data/stockton.vert +++ b/stockton-render/src/draw/data/stockton.vert @@ -2,14 +2,20 @@ layout (location = 0) in vec2 position; layout (location = 1) in vec3 colour; +layout (location = 2) in vec2 uv; +layout (location = 3) in int tex; out gl_PerVertex { - vec4 gl_Position; + vec4 gl_Position; }; layout (location = 1) out vec3 frag_colour; +layout (location = 2) out vec2 frag_uv; +layout (location = 3) out flat int frag_tex; void main() { gl_Position = vec4(position, 0.0, 1.0); frag_colour = colour; + frag_uv = uv; + frag_tex = tex; }
\ No newline at end of file |