mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Transparent background in editor
This commit is contained in:
@@ -79,6 +79,9 @@ module.exports = {
|
||||
this._camera = new renderEngine.Camera({
|
||||
x: 0, y: 0, w: canvas.width, h: canvas.height
|
||||
});
|
||||
if (CC_EDITOR) {
|
||||
this._camera.setColor(1, 1, 1, 0);
|
||||
}
|
||||
this._camera.setStages([
|
||||
'transparent'
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user