From 36fb27a899045de24d71d55b06648abda7547268 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 26 Mar 2021 19:11:29 +0100 Subject: pre cleanup --- shaders/ts_vert.glsl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 shaders/ts_vert.glsl (limited to 'shaders/ts_vert.glsl') diff --git a/shaders/ts_vert.glsl b/shaders/ts_vert.glsl new file mode 100644 index 0000000..f8e790a --- /dev/null +++ b/shaders/ts_vert.glsl @@ -0,0 +1,21 @@ +#version 330 core + +layout (location = 0) in vec3 pos; +layout (location = 1) in vec3 normal; +layout (location = 2) in vec2 uv; + +out vec3 Normal; +out vec3 FragPos; +out vec2 UV; + +uniform mat4 model; +uniform mat4 view; +uniform mat4 projection; + +void main() +{ + gl_Position = projection * view * model * vec4(pos, 1.0); + FragPos = vec3(model * vec4(pos, 1.0)); + Normal = normal; + UV = uv; +} -- cgit v1.2.3