|
@@ -43,7 +43,7 @@
|
|
{
|
|
{
|
|
"imports": {
|
|
"imports": {
|
|
"three": "../build/three.module.js",
|
|
"three": "../build/three.module.js",
|
|
- "three/addons/": "./jsm/",
|
|
|
|
|
|
+ "three-addons/": "./jsm/",
|
|
"three-nodes/": "./jsm/nodes/"
|
|
"three-nodes/": "./jsm/nodes/"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -133,22 +133,22 @@
|
|
const defaultMaterial = new Nodes.MeshBasicNodeMaterial();
|
|
const defaultMaterial = new Nodes.MeshBasicNodeMaterial();
|
|
defaultMaterial.colorNode = new Nodes.FloatNode( 0 );
|
|
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.name = 'Sphere';
|
|
- sphere.position.set( 500, 0, -500 );
|
|
|
|
|
|
+ sphere.position.set( 500, 0, - 500 );
|
|
scene.add( sphere );
|
|
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.name = 'Box';
|
|
- box.position.set( -500, 0, -500 );
|
|
|
|
|
|
+ box.position.set( - 500, 0, - 500 );
|
|
scene.add( box );
|
|
scene.add( box );
|
|
|
|
|
|
const defaultPointsMaterial = new Nodes.PointsNodeMaterial();
|
|
const defaultPointsMaterial = new Nodes.PointsNodeMaterial();
|
|
defaultPointsMaterial.colorNode = new Nodes.FloatNode( 0 );
|
|
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.name = 'Torus Knot ( Points )';
|
|
- torusKnot.position.set( 0, 0, -500 );
|
|
|
|
|
|
+ torusKnot.position.set( 0, 0, - 500 );
|
|
scene.add( torusKnot );
|
|
scene.add( torusKnot );
|
|
|
|
|
|
model = object.children[ 0 ];
|
|
model = object.children[ 0 ];
|