Fix lights
This commit is contained in:
parent
7250d164a8
commit
3725f56c78
6 changed files with 10 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ export class CircleLight extends LightDrawable {
|
|||
public static readonly descriptor: DrawableDescriptor = {
|
||||
uniformName: 'circleLights',
|
||||
uniformCountMacroName: 'CIRCLE_LIGHT_COUNT',
|
||||
shaderCombinationSteps: [0, 1, 2, 4],
|
||||
shaderCombinationSteps: [0, 1, 2, 4, 8],
|
||||
empty: new CircleLight(vec2.fromValues(0, 0), vec3.fromValues(0, 0, 0), 0),
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue