From 31b2c164c89acb4a083dc32ab25aa24c075ab10f Mon Sep 17 00:00:00 2001 From: redbirdly <155550833+redbirdly@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:05:20 +0800 Subject: [PATCH] Update lightmap.js --- mods/lightmap.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/lightmap.js b/mods/lightmap.js index 85d929b5..65a5c545 100644 --- a/mods/lightmap.js +++ b/mods/lightmap.js @@ -184,6 +184,8 @@ function renderLightmapPrePixel(ctx) { var newColor = hsvToRgb(h, s, 1); var alpha = v; + ctx.globalAlpha = 1.0; + ctx.fillStyle = `rgba(${newColor[0]}, ${newColor[1]}, ${newColor[2]}, ${alpha * 0.4})`; ctx.fillRect( x * pixelSize * lightmapScale,