summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/spotLight.gs
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-10 19:04:30 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-10 19:04:30 +0000
commitb8401062e1d3f5e6554ab7fd9b983ea63cfb05c5 (patch)
treeba5c4f944cee1fa04b4aba8b018c3f1f7864490e /gfx/gl/shaders/spotLight.gs
parentAdd spot light definition, loader, and rendering (diff)
downloadilt-b8401062e1d3f5e6554ab7fd9b983ea63cfb05c5.tar.bz2
ilt-b8401062e1d3f5e6554ab7fd9b983ea63cfb05c5.tar.xz
ilt-b8401062e1d3f5e6554ab7fd9b983ea63cfb05c5.zip
Initial commit with working light instancing
Diffstat (limited to 'gfx/gl/shaders/spotLight.gs')
-rw-r--r--gfx/gl/shaders/spotLight.gs6
1 files changed, 3 insertions, 3 deletions
diff --git a/gfx/gl/shaders/spotLight.gs b/gfx/gl/shaders/spotLight.gs
index b58c169..a2805fe 100644
--- a/gfx/gl/shaders/spotLight.gs
+++ b/gfx/gl/shaders/spotLight.gs
@@ -11,9 +11,9 @@ const vec3[] pyramid = vec3[]( // four-sided
);
uniform mat4 viewProjection;
uniform ivec3 viewPoint;
-uniform float arc;
-
-in vec3 position[];
+// uniform float arc;
+const float arc = 1;
+in ivec3 position[];
in vec3 direction[];
in float size[];
in float cosarc[];