This commit is contained in:
evanpelle
2026-05-26 18:53:29 +01:00
parent 2d6342cd22
commit e92aefdee8
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ export class WebGLFrameBuilder {
this.palette[fillOff] = fillRgba.r / 255;
this.palette[fillOff + 1] = fillRgba.g / 255;
this.palette[fillOff + 2] = fillRgba.b / 255;
this.palette[fillOff + 3] = 150 / 255;
this.palette[fillOff + 3] = 120 / 255;
const borderRgba = border.toRgb();
const borderOff = PALETTE_SIZE * 4 + smallID * 4;
@@ -71,9 +71,9 @@ void main() {
}
}
// Hover highlight: brighten every tile owned by the hovered player.
// Hover highlight: bump alpha on every tile owned by the hovered player.
if (uHighlightOwner != 0u && owner == uHighlightOwner) {
color.rgb = mix(color.rgb, vec3(1.0), uHighlightBrighten);
color.a = 130.0 / 255.0;
}
fragColor = color;