diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-10 19:04:30 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-10 19:04:30 +0000 |
commit | b8401062e1d3f5e6554ab7fd9b983ea63cfb05c5 (patch) | |
tree | ba5c4f944cee1fa04b4aba8b018c3f1f7864490e /gfx/gl/shaders/spotLight.fs | |
parent | Add spot light definition, loader, and rendering (diff) | |
download | ilt-b8401062e1d3f5e6554ab7fd9b983ea63cfb05c5.tar.bz2 ilt-b8401062e1d3f5e6554ab7fd9b983ea63cfb05c5.tar.xz ilt-b8401062e1d3f5e6554ab7fd9b983ea63cfb05c5.zip |
Initial commit with working light instancing
Diffstat (limited to 'gfx/gl/shaders/spotLight.fs')
-rw-r--r-- | gfx/gl/shaders/spotLight.fs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gfx/gl/shaders/spotLight.fs b/gfx/gl/shaders/spotLight.fs index 937f922..6d5d332 100644 --- a/gfx/gl/shaders/spotLight.fs +++ b/gfx/gl/shaders/spotLight.fs @@ -6,8 +6,10 @@ out vec3 FragColor; layout(binding = 0) uniform isampler2D gPosition; layout(binding = 1) uniform sampler2D gNormal; uniform ivec4 viewPort; -uniform vec3 colour; -uniform float kq; +// uniform vec3 colour; +// uniform float kq; +const vec3 colour = vec3(1); +const float kq = 0.01; in vec4 geo_centre; in vec4 geo_direction; |