Is there a way to remove the layer from an away3dlite object once you create one? I set up my layer like this, which works fine:
cube.layer = new Sprite(); cube.layer.blendMode = BlendMode.HARDLIGHT; cube.layer.filters = [new GlowFilter(0xffffff,0.5)]; _view.addChild(cube.layer); _view.scene.addChild(cube); When I try to remove the layer so that I can view the un-blended and un-filtered original view, everything just disappears. I tried removing the layer like this: _view.removeChild(cube.layer); But the cube just disappears then. How am I supposed to properly remove the layer from an away3dlite object?
