Update lightmap.js

This commit is contained in:
redbirdly 2024-11-11 11:05:20 +08:00 committed by GitHub
parent f629481ab4
commit 31b2c164c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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,