diff options
author | pryazha <pryadeiniv@mail.ru> | 2025-01-23 19:39:54 +0500 |
---|---|---|
committer | pryazha <pryadeiniv@mail.ru> | 2025-01-23 19:39:54 +0500 |
commit | bf1c59565096ac9774493846cfb15e259d3b0e66 (patch) | |
tree | 82e8182af128580b6f38437feccba8c0f48abdc1 /uniform_buffer/shaders/cube.vs | |
parent | 1ee094199af9c169e1ccaa53c7b0c186c4a3639e (diff) |
restructure
Diffstat (limited to 'uniform_buffer/shaders/cube.vs')
-rw-r--r-- | uniform_buffer/shaders/cube.vs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/uniform_buffer/shaders/cube.vs b/uniform_buffer/shaders/cube.vs deleted file mode 100644 index cb0b7bf..0000000 --- a/uniform_buffer/shaders/cube.vs +++ /dev/null @@ -1,21 +0,0 @@ -#version 330 core - -layout(location = 0) in vec3 apos; -layout(location = 1) in vec2 atex_coords; - -layout(std140) uniform Matrices -{ - uniform mat4 projection; - uniform mat4 view; -}; - -uniform mat4 model; - -out vec2 tex_coords; - -void -main(void) -{ - gl_Position = projection*view*model*vec4(apos, 1.0f); - tex_coords = atex_coords; -} |