mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 06:10:42 +00:00
color
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user