Viewer 支持切换渲染场景

pull/348/MERGE
ChenX 5 years ago
parent 8524ab073d
commit fa86b3b4cd

@ -100,6 +100,14 @@ export class Viewer
{ {
return this._Scene; return this._Scene;
} }
set Scene(s: Scene)
{
this._Scene = s;
this.RenderPass.scene = s;
this.OutlinePass.renderScene = s;
}
get Camera() get Camera()
{ {
return this.CameraCtrl.Camera; return this.CameraCtrl.Camera;

Loading…
Cancel
Save