summaryrefslogtreecommitdiffhomepage
path: root/shaders/lightmap.frag
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-08-29 23:38:40 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-08-30 18:22:56 +0200
commitaf6ca21ed0f2715aad0b2ae80d200589b5e31089 (patch)
tree51a51a4f4a487d29439be597e674d6c8ac58c498 /shaders/lightmap.frag
parentdbffcdc7db183ae3f1c938e8d84f4a0a11c6c122 (diff)
wip
Diffstat (limited to 'shaders/lightmap.frag')
-rw-r--r--shaders/lightmap.frag4
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/lightmap.frag b/shaders/lightmap.frag
index f6ca40a2..9136a4a5 100644
--- a/shaders/lightmap.frag
+++ b/shaders/lightmap.frag
@@ -1,7 +1,7 @@
precision mediump float;
layout (location = 2) uniform sampler2D sampler0;
-layout (location = 3) uniform vec3 light_color;
+layout (location = 3) uniform vec4 light_color;
layout (location = 4) uniform vec2 scale;
layout (location = 5) uniform vec2 center_fragcoord;
layout (location = 6) uniform vec2 center_clip;
@@ -28,7 +28,7 @@ void main() {
float tmp = max(0, L - dist);
A = tmp*tmp / (L*L);
}
- color0 = vec4(light_color.rgb * A, 1);
+ color0 = vec4(light_color.rgb * light_color.a * A, 1);
}
else if (mode == 2) // blend
{