diff options
author | pryazha <pryadeiniv@mail.ru> | 2025-02-19 22:26:48 +0500 |
---|---|---|
committer | pryazha <pryadeiniv@mail.ru> | 2025-02-19 22:26:48 +0500 |
commit | f9ad6fa902c1167d7622ee7af2617d14b62bee21 (patch) | |
tree | 9d78792cf360ed871616a9ea66c4237018292aa7 /advanced_lighting/4.normal_mapping/shaders/depth.gs | |
parent | 926cbd0d49890772f911e6a6bedb7835605ced89 (diff) |
quite a lot of changes that I, of course, are not going to describe;)
Diffstat (limited to 'advanced_lighting/4.normal_mapping/shaders/depth.gs')
-rw-r--r-- | advanced_lighting/4.normal_mapping/shaders/depth.gs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/advanced_lighting/4.normal_mapping/shaders/depth.gs b/advanced_lighting/4.normal_mapping/shaders/depth.gs deleted file mode 100644 index 638e2b9..0000000 --- a/advanced_lighting/4.normal_mapping/shaders/depth.gs +++ /dev/null @@ -1,27 +0,0 @@ -#version 330 core -layout(triangles) in; -layout(triangle_strip, max_vertices=18) out; - -uniform mat4 shadow_transforms[6]; - -out vec4 frag_pos; - -void -main(void) -{ - for (int face = 0; - face < 6; - ++face) - { - gl_Layer = face; - for (int vertex = 0; - vertex < 3; - ++vertex) - { - frag_pos = gl_in[vertex].gl_Position; - gl_Position = shadow_transforms[face]*frag_pos; - EmitVertex(); - } - EndPrimitive(); - } -} |