Skip to content

Commit 4e5c261

Browse files
authored
fixed lightmap having wrong opacity (#351)
1 parent 97e6c5c commit 4e5c261

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
7+
### Fixed
8+
- Fixed lightmap rendering using inverted black values
9+
710
## [2.4.0] 2026-05-15
811
### Added
912
- Added "Render lights" toggle to show how lights would look ingame

webapp/src/app/services/phaser/lightmap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class Lightmap extends Phaser.GameObjects.GameObject {
115115
...weatherTypes.NONE,
116116
...weatherTypes[map.attributes.weather],
117117
};
118-
this.renderTexture.alpha = 1 - weatherType.lightMapDarkness;
118+
this.renderTexture.alpha = weatherType.lightMapDarkness;
119119

120120
const glowColor = Phaser.Display.Color.HexStringToColor(weatherType.glowColor).color;
121121
const tileSize = Globals.TILE_SIZE;

0 commit comments

Comments
 (0)