diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-17 17:04:32 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-17 17:04:32 +0100 |
commit | e4414150da485a8aacdd221e23cad801f8d532c6 (patch) | |
tree | d93c48015e50501477bb97d067eca16c746a36f5 /gfx/gl/shaders | |
parent | Assets moved to global game state (diff) | |
download | ilt-e4414150da485a8aacdd221e23cad801f8d532c6.tar.bz2 ilt-e4414150da485a8aacdd221e23cad801f8d532c6.tar.xz ilt-e4414150da485a8aacdd221e23cad801f8d532c6.zip |
Fix up the way spotlight shader works
Was mostly through lack of understanding and coincidences. Position is now the only vertex data,
direction is moved to a uniform. Instancing will address this by making everything instance data.
Diffstat (limited to 'gfx/gl/shaders')
-rw-r--r-- | gfx/gl/shaders/spotLight.vs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/shaders/spotLight.vs b/gfx/gl/shaders/spotLight.vs index e648553..dca0854 100644 --- a/gfx/gl/shaders/spotLight.vs +++ b/gfx/gl/shaders/spotLight.vs @@ -1,8 +1,8 @@ #version 330 core layout(location = 0) in vec3 v_position; -layout(location = 1) in vec3 v_direction; +uniform vec3 v_direction; uniform vec3 colour; uniform float kq; uniform float arc; |