|
43 | 43 | { |
44 | 44 | "imports": { |
45 | 45 | "three": "../build/three.module.js", |
46 | | - "three/addons/": "./jsm/", |
| 46 | + "three-addons/": "./jsm/", |
47 | 47 | "three-nodes/": "./jsm/nodes/" |
48 | 48 | } |
49 | 49 | } |
|
133 | 133 | const defaultMaterial = new Nodes.MeshBasicNodeMaterial(); |
134 | 134 | defaultMaterial.colorNode = new Nodes.FloatNode( 0 ); |
135 | 135 |
|
136 | | - const sphere = new THREE.Mesh( new THREE.SphereGeometry( 200, 32, 16 ), defaultMaterial ) ; |
| 136 | + const sphere = new THREE.Mesh( new THREE.SphereGeometry( 200, 32, 16 ), defaultMaterial ); |
137 | 137 | sphere.name = 'Sphere'; |
138 | | - sphere.position.set( 500, 0, -500 ); |
| 138 | + sphere.position.set( 500, 0, - 500 ); |
139 | 139 | scene.add( sphere ); |
140 | 140 |
|
141 | | - const box = new THREE.Mesh( new THREE.BoxGeometry( 200, 200, 200 ), defaultMaterial ) ; |
| 141 | + const box = new THREE.Mesh( new THREE.BoxGeometry( 200, 200, 200 ), defaultMaterial ); |
142 | 142 | box.name = 'Box'; |
143 | | - box.position.set( -500, 0, -500 ); |
| 143 | + box.position.set( - 500, 0, - 500 ); |
144 | 144 | scene.add( box ); |
145 | 145 |
|
146 | 146 | const defaultPointsMaterial = new Nodes.PointsNodeMaterial(); |
147 | 147 | defaultPointsMaterial.colorNode = new Nodes.FloatNode( 0 ); |
148 | 148 |
|
149 | | - const torusKnot = new THREE.Points( new THREE.TorusKnotGeometry( 100, 30, 100, 16 ), defaultPointsMaterial ) ; |
| 149 | + const torusKnot = new THREE.Points( new THREE.TorusKnotGeometry( 100, 30, 100, 16 ), defaultPointsMaterial ); |
150 | 150 | torusKnot.name = 'Torus Knot ( Points )'; |
151 | | - torusKnot.position.set( 0, 0, -500 ); |
| 151 | + torusKnot.position.set( 0, 0, - 500 ); |
152 | 152 | scene.add( torusKnot ); |
153 | 153 |
|
154 | 154 | model = object.children[ 0 ]; |
|
0 commit comments