Transparent background in editor

This commit is contained in:
pandamicro
2017-11-29 14:00:28 +08:00
parent d8cd6bcb56
commit 3ecc88397f
+3
View File
@@ -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'
]);