From bd49bd525f4c6c6c15c4142bf42d1dd38be6fc16 Mon Sep 17 00:00:00 2001 From: pryazha Date: Sun, 19 Jan 2025 17:33:44 +0500 Subject: initial commit --- mesh_loading_test/shaders/default.vs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 mesh_loading_test/shaders/default.vs (limited to 'mesh_loading_test/shaders/default.vs') diff --git a/mesh_loading_test/shaders/default.vs b/mesh_loading_test/shaders/default.vs new file mode 100644 index 0000000..90e883a --- /dev/null +++ b/mesh_loading_test/shaders/default.vs @@ -0,0 +1,16 @@ +#version 330 core +layout(location = 0) in vec3 apos; +layout(location = 2) in vec2 atex_coords; + +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); +} -- cgit v1.2.3