diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-23 04:07:38 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-23 04:07:38 +0200 |
| commit | 4019ab7a0dfb771e02d07a70c56c64703a053315 (patch) | |
| tree | 950ab6c4d690b7af0d4d3a09a17fd23fbf3e8c05 /shaders/lightmap.frag | |
| parent | 8e4781b3103f68965b2aba4e914f7c3281ccbc59 (diff) | |
shaders: clean up a bit
Diffstat (limited to 'shaders/lightmap.frag')
| -rw-r--r-- | shaders/lightmap.frag | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/lightmap.frag b/shaders/lightmap.frag index 4922db8e..91467907 100644 --- a/shaders/lightmap.frag +++ b/shaders/lightmap.frag @@ -5,7 +5,7 @@ layout (location = 1) uniform vec3 light_color; layout (location = 2) uniform vec2 size; layout (location = 3) uniform vec2 center_fragcoord; layout (location = 4) uniform vec2 center_clip; -layout (location = 5) uniform float intensity; +layout (location = 5) uniform float range; layout (location = 6) uniform uint mode; layout (location = 7) uniform uint falloff; @@ -16,7 +16,7 @@ out vec4 color; void main() { if (mode == 1) { - float L = intensity; + float L = range; vec2 pos = gl_FragCoord.xy; float dist = distance(pos, center_fragcoord); float A = 1; |
