summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-11-01 20:00:49 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-11-01 20:00:49 +0000
commitcf2b44ffea76a46e03e646b53cf985739fc93b50 (patch)
tree1dc1a2ce74d28df5c98cce669741ce0717ed7afb /gfx/gl/shaders
parentSwitch to a deferred lighting based render pipeline (diff)
downloadilt-cf2b44ffea76a46e03e646b53cf985739fc93b50.tar.bz2
ilt-cf2b44ffea76a46e03e646b53cf985739fc93b50.tar.xz
ilt-cf2b44ffea76a46e03e646b53cf985739fc93b50.zip
Tidied Scene Renderer
Diffstat (limited to 'gfx/gl/shaders')
-rw-r--r--gfx/gl/shaders/lightingShader.vs7
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;
}