fix: 渲染根元素不能取消alpha通道

This commit is contained in:
unanmed 2024-10-04 01:10:57 +08:00
parent 8d7ca27bb4
commit 06adb72bc3

View File

@ -13,7 +13,7 @@ export class MotaRenderer extends Container {
constructor(id: string = 'render-main') {
super('static', false);
this.target = new MotaCanvas2D(id, true, false);
this.target = new MotaCanvas2D(id);
this.size(core._PX_, core._PY_);
this.target.withGameScale(true);
this.target.size(core._PX_, core._PY_);