Skip to content

Commit 1244316

Browse files
committed
Examples: Clean up.
1 parent 82c8132 commit 1244316

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

examples/jsm/node-editor/utils/PreviewEditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
2-
import { ViewHelper } from 'three/addons/helpers/ViewHelper.js';
1+
import { OrbitControls } from 'three-addons/controls/OrbitControls.js';
2+
import { ViewHelper } from 'three-addons/helpers/ViewHelper.js';
33
import { Element, LabelElement, SelectInput } from '../../libs/flow.module.js';
44
import { BaseNode } from '../core/BaseNode.js';
55
import { MeshBasicNodeMaterial, FloatNode } from 'three-nodes/Nodes.js';

examples/webgl_nodes_playground.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
{
4444
"imports": {
4545
"three": "../build/three.module.js",
46-
"three/addons/": "./jsm/",
46+
"three-addons/": "./jsm/",
4747
"three-nodes/": "./jsm/nodes/"
4848
}
4949
}
@@ -133,22 +133,22 @@
133133
const defaultMaterial = new Nodes.MeshBasicNodeMaterial();
134134
defaultMaterial.colorNode = new Nodes.FloatNode( 0 );
135135

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 );
137137
sphere.name = 'Sphere';
138-
sphere.position.set( 500, 0, -500 );
138+
sphere.position.set( 500, 0, - 500 );
139139
scene.add( sphere );
140140

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 );
142142
box.name = 'Box';
143-
box.position.set( -500, 0, -500 );
143+
box.position.set( - 500, 0, - 500 );
144144
scene.add( box );
145145

146146
const defaultPointsMaterial = new Nodes.PointsNodeMaterial();
147147
defaultPointsMaterial.colorNode = new Nodes.FloatNode( 0 );
148148

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 );
150150
torusKnot.name = 'Torus Knot ( Points )';
151-
torusKnot.position.set( 0, 0, -500 );
151+
torusKnot.position.set( 0, 0, - 500 );
152152
scene.add( torusKnot );
153153

154154
model = object.children[ 0 ];

examples/webgpu_nodes_playground.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
{
4646
"imports": {
4747
"three": "../build/three.module.js",
48-
"three/addons/": "./jsm/",
48+
"three-addons/": "./jsm/",
4949
"three-nodes/": "./jsm/nodes/"
5050
}
5151
}

0 commit comments

Comments
 (0)