diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-01 20:00:49 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-01 20:00:49 +0000 |
commit | cf2b44ffea76a46e03e646b53cf985739fc93b50 (patch) | |
tree | 1dc1a2ce74d28df5c98cce669741ce0717ed7afb /gfx/gl | |
parent | Switch to a deferred lighting based render pipeline (diff) | |
download | ilt-cf2b44ffea76a46e03e646b53cf985739fc93b50.tar.bz2 ilt-cf2b44ffea76a46e03e646b53cf985739fc93b50.tar.xz ilt-cf2b44ffea76a46e03e646b53cf985739fc93b50.zip |
Tidied Scene Renderer
Diffstat (limited to 'gfx/gl')
-rw-r--r-- | gfx/gl/shaders/lightingShader.vs | 7 |
1 files changed, 3 insertions, 4 deletions
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; } |