From e716ac88889c2266c873726fb19fc08cd9b32810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20Ren=C3=A7ber?= <86446300+Aermoss@users.noreply.github.com> Date: Mon, 26 Jun 2023 08:32:54 +0300 Subject: [PATCH] Delete light.vert --- moss/shaders/light.vert | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 moss/shaders/light.vert diff --git a/moss/shaders/light.vert b/moss/shaders/light.vert deleted file mode 100644 index 9fa21a0..0000000 --- a/moss/shaders/light.vert +++ /dev/null @@ -1,29 +0,0 @@ -#version 460 - -layout (location = 0) in vec3 position; -layout (location = 1) in vec2 texCoord; -layout (location = 2) in vec3 normal; - -out DATA { - vec3 position; - vec2 texCoord; - vec3 normal; - vec3 cameraPosition; - mat4 proj; - mat4 view; - mat4 model; -} data_out; - -uniform mat4 proj; -uniform mat4 view; -uniform mat4 model; - -void main() { - data_out.position = vec3(model * vec4(position, 1.0f)); - data_out.texCoord = texCoord; - data_out.normal = vec3(mat3(transpose(inverse(model))) * normal); - data_out.proj = proj; - data_out.view = view; - data_out.model = model; - gl_Position = proj * view * model * vec4(position, 1.0f); -} \ No newline at end of file