summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders
diff options
context:
space:
mode:
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;
}