Skip to content

Commit ca4f771

Browse files
committed
feat(sdk): js shape is now blendable
1 parent 891bda3 commit ca4f771

File tree

1 file changed

+3
-1
lines changed
  • engine/modules/entities/src/main/resources/view/entity-module

1 file changed

+3
-1
lines changed

engine/modules/entities/src/main/resources/view/entity-module/Shape.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export class Shape extends Entity {
2525
lineWidth: Shape.defaultLineWidth(),
2626
lineColor: Shape.defaultLineColor(),
2727
fillAlpha: Shape.defaultFillAlpha(),
28-
lineAlpha: Shape.defaultLineAlpha()
28+
lineAlpha: Shape.defaultLineAlpha(),
29+
blendMode: PIXI.BLEND_MODES.NORMAL
2930
})
3031
}
3132

@@ -40,5 +41,6 @@ export class Shape extends Entity {
4041

4142
updateDisplay (state, changed, globalData) {
4243
super.updateDisplay(state, changed, globalData)
44+
this.graphics.blendMode = state.blendMode
4345
}
4446
}

0 commit comments

Comments
 (0)