summaryrefslogtreecommitdiff
path: root/gfx/gl/shaders/spotLight.fs
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-12-17 12:14:35 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-12-17 12:14:35 +0000
commitcbc94ed8572cd4ea4e22ad5437b54eea055235d9 (patch)
tree8fe8d0016124f7e4fa19a72a6fe6c9ea48b6ab2c /gfx/gl/shaders/spotLight.fs
parentUse a separate framebuffer for illumination phase (diff)
downloadilt-cbc94ed8572cd4ea4e22ad5437b54eea055235d9.tar.bz2
ilt-cbc94ed8572cd4ea4e22ad5437b54eea055235d9.tar.xz
ilt-cbc94ed8572cd4ea4e22ad5437b54eea055235d9.zip
Use 32bit integer texture for position render data
Diffstat (limited to 'gfx/gl/shaders/spotLight.fs')
-rw-r--r--gfx/gl/shaders/spotLight.fs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/shaders/spotLight.fs b/gfx/gl/shaders/spotLight.fs
index 78b8f72..937f922 100644
--- a/gfx/gl/shaders/spotLight.fs
+++ b/gfx/gl/shaders/spotLight.fs
@@ -3,7 +3,7 @@
out vec3 FragColor;
-layout(binding = 0) uniform sampler2D gPosition;
+layout(binding = 0) uniform isampler2D gPosition;
layout(binding = 1) uniform sampler2D gNormal;
uniform ivec4 viewPort;
uniform vec3 colour;