src/shaders/vertex.glsl @ 11cac4bb8d4c shaders

Start porting the graphics to use VAOs/shaders
author Steve Losh <steve@stevelosh.com>
date Mon, 21 Nov 2016 16:58:27 +0000
parents (none)
children (none)
#version 330

layout (location = 0) in vec3 in_position;
layout (location = 1) in vec3 in_texcoord;

smooth out vec2 pos;
smooth out vec2 tex;

void main() {
	pos = in_position.xy * 30.0;
	tex = in_texcoord.xy;
	gl_Position = vec4(pos.xy, 0.0, 1.0);
}