|
@@ -15,6 +15,8 @@ import { SetPositionCommand } from './commands/SetPositionCommand.js';
|
|
|
import { SetRotationCommand } from './commands/SetRotationCommand.js';
|
|
|
import { SetScaleCommand } from './commands/SetScaleCommand.js';
|
|
|
|
|
|
+import { RoomEnvironment } from '../../examples/jsm/environments/RoomEnvironment.js';
|
|
|
+
|
|
|
function Viewport( editor ) {
|
|
|
|
|
|
var signals = editor.signals;
|
|
@@ -603,6 +605,9 @@ function Viewport( editor ) {
|
|
|
case 'Background':
|
|
|
scene.environment = pmremTexture;
|
|
|
break;
|
|
|
+ case 'ModelViewer':
|
|
|
+ scene.environment = pmremGenerator.fromScene( new RoomEnvironment() ).texture;
|
|
|
+ break;
|
|
|
|
|
|
}
|
|
|
|