summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneShader.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-17 17:04:32 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-17 17:04:32 +0100
commite4414150da485a8aacdd221e23cad801f8d532c6 (patch)
treed93c48015e50501477bb97d067eca16c746a36f5 /gfx/gl/sceneShader.h
parentAssets moved to global game state (diff)
downloadilt-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/sceneShader.h')
-rw-r--r--gfx/gl/sceneShader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gfx/gl/sceneShader.h b/gfx/gl/sceneShader.h
index 0ccf152..c135050 100644
--- a/gfx/gl/sceneShader.h
+++ b/gfx/gl/sceneShader.h
@@ -69,6 +69,7 @@ class SceneShader {
const float arc) const;
private:
+ UniformLocation directionLoc;
UniformLocation colourLoc;
UniformLocation kqLoc;
UniformLocation arcLoc;