From 2e64d3c5d6eb1eb04168d39d5eb5f2d89af1a8b0 Mon Sep 17 00:00:00 2001 From: pryazha Date: Sat, 2 Aug 2025 13:21:42 +0500 Subject: debug chapter --- pbr/1.2.textured/pbr.vert | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 pbr/1.2.textured/pbr.vert (limited to 'pbr/1.2.textured/pbr.vert') diff --git a/pbr/1.2.textured/pbr.vert b/pbr/1.2.textured/pbr.vert deleted file mode 100644 index 0ff1bdb..0000000 --- a/pbr/1.2.textured/pbr.vert +++ /dev/null @@ -1,24 +0,0 @@ -#version 330 core - -layout(location = 0) in vec3 position; -layout(location = 1) in vec3 normal; -layout(location = 2) in vec2 tex_coords; - -out vert_t { - vec3 position; - vec3 normal; - vec2 tex_coords; -} vert; - -uniform mat4 projection; -uniform mat4 view; -uniform mat4 model; - -void main(void) -{ - gl_Position = projection * view * model * vec4(position, 1.0); - - vert.position = vec3(model * vec4(position, 1.0)); - vert.normal = normalize(mat3(transpose(inverse(model))) * normal); - vert.tex_coords = tex_coords; -} -- cgit v1.2.3-70-g09d2