From cf2b44ffea76a46e03e646b53cf985739fc93b50 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 1 Nov 2022 20:00:49 +0000 Subject: Tidied Scene Renderer --- gfx/gl/shaders/lightingShader.vs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gfx') diff --git a/gfx/gl/shaders/lightingShader.vs b/gfx/gl/shaders/lightingShader.vs index 933a46a..2271d2e 100644 --- a/gfx/gl/shaders/lightingShader.vs +++ b/gfx/gl/shaders/lightingShader.vs @@ -1,13 +1,12 @@ #version 330 core -in vec3 aPos; -in vec2 aTexCoords; +in vec4 position; out vec2 TexCoords; void main() { - TexCoords = aTexCoords; - gl_Position = vec4(aPos, 1.0); + gl_Position = vec4(position.xy, 0.0, 1.0); + TexCoords = position.zw; } -- cgit v1.2.3