From f9ad6fa902c1167d7622ee7af2617d14b62bee21 Mon Sep 17 00:00:00 2001 From: pryazha Date: Wed, 19 Feb 2025 22:26:48 +0500 Subject: quite a lot of changes that I, of course, are not going to describe;) --- .../1.blinn_phong/shaders/blinn_phong.vs | 23 ---------------------- 1 file changed, 23 deletions(-) delete mode 100644 advanced_lighting/1.blinn_phong/shaders/blinn_phong.vs (limited to 'advanced_lighting/1.blinn_phong/shaders/blinn_phong.vs') diff --git a/advanced_lighting/1.blinn_phong/shaders/blinn_phong.vs b/advanced_lighting/1.blinn_phong/shaders/blinn_phong.vs deleted file mode 100644 index 4d1b792..0000000 --- a/advanced_lighting/1.blinn_phong/shaders/blinn_phong.vs +++ /dev/null @@ -1,23 +0,0 @@ -#version 330 core -layout(location = 0) in vec3 apos; -layout(location = 1) in vec3 anormal; -layout(location = 2) in vec2 atex_coords; - -out VS_OUT { - vec3 frag_pos; - vec3 normal; - vec2 tex_coords; -} vs_out; - -uniform mat4 projection; -uniform mat4 view; -uniform mat4 model; - -void -main(void) -{ - vs_out.frag_pos = vec3(model*vec4(apos, 1.0)); - vs_out.normal = mat3(transpose(inverse(model)))*anormal; - vs_out.tex_coords = atex_coords; - gl_Position = projection*view*model*vec4(apos, 1.0); -} -- cgit v1.2.3