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 /advanced_opengl/6.cubemaps/shaders/cube.vs | |
parent | 1ee094199af9c169e1ccaa53c7b0c186c4a3639e (diff) |
restructure
Diffstat (limited to 'advanced_opengl/6.cubemaps/shaders/cube.vs')
-rw-r--r-- | advanced_opengl/6.cubemaps/shaders/cube.vs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/advanced_opengl/6.cubemaps/shaders/cube.vs b/advanced_opengl/6.cubemaps/shaders/cube.vs new file mode 100644 index 0000000..3c11932 --- /dev/null +++ b/advanced_opengl/6.cubemaps/shaders/cube.vs @@ -0,0 +1,17 @@ +#version 330 core + +layout(location = 0) in vec3 apos; +layout(location = 1) in vec2 atex_coords; + +uniform mat4 model; +uniform mat4 view; +uniform mat4 projection; + +out vec2 tex_coords; + +void +main(void) +{ + gl_Position = projection*view*model*vec4(apos, 1.0f); + tex_coords = atex_coords; +} |