From f8af4c44d17b94ab814f1784060388afd7a24e03 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 26 Jan 2019 14:54:29 +0500 Subject: Removed previous implementation of Shader --- cwd/assets/altcraft/shaders/vert/entity.vs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cwd/assets/altcraft/shaders/vert/entity.vs (limited to 'cwd/assets/altcraft/shaders/vert/entity.vs') diff --git a/cwd/assets/altcraft/shaders/vert/entity.vs b/cwd/assets/altcraft/shaders/vert/entity.vs new file mode 100644 index 0000000..baa25e5 --- /dev/null +++ b/cwd/assets/altcraft/shaders/vert/entity.vs @@ -0,0 +1,13 @@ +#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; + +void main(){ + uvPos = uvPosition; + gl_Position = projection*view*model*vec4(position,1); +} \ No newline at end of file -- cgit v1.2.3