From a3c99df80c201e56a32eb5fe650d45e9a9ccaee2 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 16 Oct 2017 16:24:04 +0100 Subject: shader compiles --- keyshade/bin/data/shader.vert | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 keyshade/bin/data/shader.vert (limited to 'keyshade/bin/data/shader.vert') diff --git a/keyshade/bin/data/shader.vert b/keyshade/bin/data/shader.vert new file mode 100644 index 0000000..0e63995 --- /dev/null +++ b/keyshade/bin/data/shader.vert @@ -0,0 +1,16 @@ +#version 150 + +// these come from the programmable pipeline +uniform mat4 modelViewProjectionMatrix; + +in vec4 position; +in vec2 texcoord; + +// texture coordinates are sent to fragment shader +out vec2 texCoordVarying; + +void main() +{ + texCoordVarying = texcoord; + gl_Position = modelViewProjectionMatrix * position; +} \ No newline at end of file -- cgit v1.2.3