From c62e2cd49649109f0135e56ee8add0dab2254d01 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sun, 20 Aug 2017 20:21:29 +0500 Subject: 2017-08-20 --- cwd/shaders/sky.vs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cwd/shaders/sky.vs (limited to 'cwd/shaders/sky.vs') diff --git a/cwd/shaders/sky.vs b/cwd/shaders/sky.vs new file mode 100644 index 0000000..983e1f3 --- /dev/null +++ b/cwd/shaders/sky.vs @@ -0,0 +1,17 @@ +#version 330 core + +uniform mat4 view; +uniform mat4 projection; +uniform mat4 model; + +layout (location = 0) in vec3 position; +layout (location = 1) in vec2 uvPosition; + +out vec2 uvPos; +out vec3 pos; + +void main(){ + uvPos = uvPosition; + pos = position; + gl_Position = projection*view*model*vec4(position,1); +} \ No newline at end of file -- cgit v1.2.3