From 17f0db6607534c5bf1ba96153fabd3fdbb399ed9 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 23 Jun 2024 01:11:28 +1000 Subject: wip: debug quad shader --- assets/shaders/debug_quad.vert | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 assets/shaders/debug_quad.vert (limited to 'assets/shaders/debug_quad.vert') diff --git a/assets/shaders/debug_quad.vert b/assets/shaders/debug_quad.vert new file mode 100644 index 0000000..8b8201c --- /dev/null +++ b/assets/shaders/debug_quad.vert @@ -0,0 +1,13 @@ +#version 410 core +layout (location = 0) in vec3 inPosition; +layout (location = 1) in vec3 inNormal; +layout (location = 2) in vec2 inTexCoords; + +out vec2 TexCoords; + +void main() +{ + TexCoords = inTexCoords; + vec2 xy = inPosition.xz; + gl_Position = vec4(xy, 0.0, 1.0); +} -- cgit v1.2.3-70-g09d2