diff options
author | pryazha <pryadeiniv@mail.ru> | 2025-01-19 17:33:44 +0500 |
---|---|---|
committer | pryazha <pryadeiniv@mail.ru> | 2025-01-19 17:33:44 +0500 |
commit | bd49bd525f4c6c6c15c4142bf42d1dd38be6fc16 (patch) | |
tree | 9e69f473c34b53e9e57d8af1873c39698bf5c80e /instancing/shaders/default.vs |
initial commit
Diffstat (limited to 'instancing/shaders/default.vs')
-rw-r--r-- | instancing/shaders/default.vs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/instancing/shaders/default.vs b/instancing/shaders/default.vs new file mode 100644 index 0000000..85d3c19 --- /dev/null +++ b/instancing/shaders/default.vs @@ -0,0 +1,18 @@ +#version 330 core +layout(location = 0) in vec3 apos; +layout(location = 1) in vec3 anormal; +layout(location = 2) in vec2 atex_coords; + +out vec3 normal; +out vec2 tex_coords; + +uniform mat4 projection; +uniform mat4 view; +uniform mat4 model; + +void +main(void) +{ + tex_coords = atex_coords; + gl_Position = projection*view*model*vec4(apos, 1.0); +} |