|
@@ -66,7 +66,7 @@
|
|
scene.add( new THREE.AmbientLight( 0x999999 ) );
|
|
scene.add( new THREE.AmbientLight( 0x999999 ) );
|
|
|
|
|
|
var pointLight = new THREE.PointLight( 0xffffff, 0.6 );
|
|
var pointLight = new THREE.PointLight( 0xffffff, 0.6 );
|
|
- pointLight.position.set( 80, 90, -150 );
|
|
|
|
|
|
+ pointLight.position.set( 80, 90, 150 );
|
|
scene.add( pointLight );
|
|
scene.add( pointLight );
|
|
|
|
|
|
camera = new THREE.PerspectiveCamera( 35, window.innerWidth / window.innerHeight, 1, 500 );
|
|
camera = new THREE.PerspectiveCamera( 35, window.innerWidth / window.innerHeight, 1, 500 );
|
|
@@ -86,9 +86,9 @@
|
|
document.body.appendChild( renderer.domElement );
|
|
document.body.appendChild( renderer.domElement );
|
|
|
|
|
|
var loader = new THREE.ThreeMFLoader();
|
|
var loader = new THREE.ThreeMFLoader();
|
|
- loader.load( './models/3mf/cube_gears.3mf', function ( object3mf ) {
|
|
|
|
|
|
+ loader.load( './models/3mf/cube_gears.3mf', function ( object ) {
|
|
|
|
|
|
- scene.add( object3mf );
|
|
|
|
|
|
+ scene.add( object );
|
|
render();
|
|
render();
|
|
|
|
|
|
} );
|
|
} );
|