|
41 | 41 | document.body.appendChild( container ); |
42 | 42 |
|
43 | 43 | camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 1, 200 ); |
44 | | - camera.position.set( - 0.7, 14.6, 43.2 ); |
| 44 | + camera.position.set( 0.7, 14.6, - 43.2 ); |
45 | 45 |
|
46 | 46 | scene = new THREE.Scene(); |
47 | 47 | scene.background = new THREE.Color( 0xa0a0a0 ); |
|
50 | 50 | scene.add( ambientLight ); |
51 | 51 |
|
52 | 52 | const light1 = new THREE.DirectionalLight( 0xc1c1c1, 3 ); |
53 | | - light1.position.set( 0, 200, 100 ); |
| 53 | + light1.position.set( 0, 200, - 100 ); |
54 | 54 | scene.add( light1 ); |
55 | 55 |
|
56 | 56 | const grid = new THREE.GridHelper( 200, 20, 0x000000, 0x000000 ); |
|
62 | 62 | loader.load( 'models/lwo/Objects/LWO3/Demo.lwo', function ( object ) { |
63 | 63 |
|
64 | 64 | const phong = object.meshes[ 0 ]; |
65 | | - phong.position.set( - 2, 12, 0 ); |
| 65 | + phong.position.set( 2, 12, 0 ); |
66 | 66 |
|
67 | 67 | const standard = object.meshes[ 1 ]; |
68 | | - standard.position.set( 2, 12, 0 ); |
| 68 | + standard.position.set( - 2, 12, 0 ); |
69 | 69 |
|
70 | 70 | const rocket = object.meshes[ 2 ]; |
71 | | - rocket.position.set( 0, 10.5, - 1 ); |
| 71 | + rocket.position.set( 0, 10.5, 1 ); |
72 | 72 |
|
73 | 73 | scene.add( phong, standard, rocket ); |
74 | 74 |
|
|
82 | 82 | container.appendChild( renderer.domElement ); |
83 | 83 |
|
84 | 84 | const controls = new OrbitControls( camera, renderer.domElement ); |
85 | | - controls.target.set( 1.33, 10, - 6.7 ); |
| 85 | + controls.target.set( - 1.33, 10, 6.7 ); |
86 | 86 | controls.update(); |
87 | 87 |
|
88 | 88 | window.addEventListener( 'resize', onWindowResize ); |
|
0 commit comments