|
@@ -57,7 +57,6 @@
|
|
|
import WebGPURenderer from './jsm/renderers/webgpu/WebGPURenderer.js';
|
|
|
|
|
|
import { NodeEditor } from './jsm/node-editor/NodeEditor.js';
|
|
|
- import { StandardMaterialEditor } from './jsm/node-editor/materials/StandardMaterialEditor.js';
|
|
|
import { MeshEditor } from './jsm/node-editor/scene/MeshEditor.js';
|
|
|
|
|
|
import * as Nodes from './jsm/renderers/nodes/Nodes.js';
|
|
@@ -164,22 +163,22 @@
|
|
|
const defaultMaterial = new Nodes.MeshBasicNodeMaterial();
|
|
|
defaultMaterial.colorNode = new Nodes.FloatNode( 0 );
|
|
|
|
|
|
- const sphere = new THREE.Mesh( new THREE.SphereGeometry( 200, 32, 16 ), defaultMaterial ) ;
|
|
|
+ const sphere = new THREE.Mesh( new THREE.SphereGeometry( 200, 32, 16 ), defaultMaterial );
|
|
|
sphere.name = 'Sphere';
|
|
|
- sphere.position.set( 500, 0, -500 );
|
|
|
+ sphere.position.set( 500, 0, - 500 );
|
|
|
scene.add( sphere );
|
|
|
|
|
|
- const box = new THREE.Mesh( new THREE.BoxGeometry( 200, 200, 200 ), defaultMaterial ) ;
|
|
|
+ const box = new THREE.Mesh( new THREE.BoxGeometry( 200, 200, 200 ), defaultMaterial );
|
|
|
box.name = 'Box';
|
|
|
- box.position.set( -500, 0, -500 );
|
|
|
+ box.position.set( - 500, 0, - 500 );
|
|
|
scene.add( box );
|
|
|
|
|
|
const defaultPointsMaterial = new Nodes.PointsNodeMaterial();
|
|
|
defaultPointsMaterial.colorNode = new Nodes.FloatNode( 0 );
|
|
|
|
|
|
- const torusKnot = new THREE.Points( new THREE.TorusKnotGeometry( 100, 30, 100, 16 ), defaultPointsMaterial ) ;
|
|
|
+ const torusKnot = new THREE.Points( new THREE.TorusKnotGeometry( 100, 30, 100, 16 ), defaultPointsMaterial );
|
|
|
torusKnot.name = 'Torus Knot ( Points )';
|
|
|
- torusKnot.position.set( 0, 0, -500 );
|
|
|
+ torusKnot.position.set( 0, 0, - 500 );
|
|
|
scene.add( torusKnot );
|
|
|
|
|
|
model = object.children[ 0 ];
|