Fix lights

This commit is contained in:
schmelczerandras 2020-09-21 15:45:03 +02:00
parent 7250d164a8
commit 3725f56c78
6 changed files with 10 additions and 6 deletions

View file

@ -20,7 +20,7 @@ export class LightDrawable extends Drawable {
return {
center: vec2.transformMat2d(vec2.create(), this.center, transform2d),
color: this.color,
intensity: this.intensity * this.lightnessRatio,
intensity: this.intensity * this.lightnessRatio * transform1d * 1500,
};
}
}