|
@@ -34,8 +34,6 @@
|
|
|
|
|
|
import { STLLoader } from 'three/addons/loaders/STLLoader.js';
|
|
|
|
|
|
- THREE.ColorManagement.enabled = false; // TODO: Consider enabling color management.
|
|
|
-
|
|
|
let container, stats;
|
|
|
|
|
|
let camera, cameraTarget, scene, renderer;
|
|
@@ -61,7 +59,7 @@
|
|
|
|
|
|
const plane = new THREE.Mesh(
|
|
|
new THREE.PlaneGeometry( 40, 40 ),
|
|
|
- new THREE.MeshPhongMaterial( { color: 0x999999, specular: 0x101010 } )
|
|
|
+ new THREE.MeshPhongMaterial( { color: 0xcbcbcb, specular: 0x474747 } )
|
|
|
);
|
|
|
plane.rotation.x = - Math.PI / 2;
|
|
|
plane.position.y = - 0.5;
|
|
@@ -75,7 +73,7 @@
|
|
|
const loader = new STLLoader();
|
|
|
loader.load( './models/stl/ascii/slotted_disk.stl', function ( geometry ) {
|
|
|
|
|
|
- const material = new THREE.MeshPhongMaterial( { color: 0xff5533, specular: 0x111111, shininess: 200 } );
|
|
|
+ const material = new THREE.MeshPhongMaterial( { color: 0xff9c7c, specular: 0x494949, shininess: 200 } );
|
|
|
const mesh = new THREE.Mesh( geometry, material );
|
|
|
|
|
|
mesh.position.set( 0, - 0.25, 0.6 );
|
|
@@ -92,7 +90,7 @@
|
|
|
|
|
|
// Binary files
|
|
|
|
|
|
- const material = new THREE.MeshPhongMaterial( { color: 0xAAAAAA, specular: 0x111111, shininess: 200 } );
|
|
|
+ const material = new THREE.MeshPhongMaterial( { color: 0xd5d5d5, specular: 0x494949, shininess: 200 } );
|
|
|
|
|
|
loader.load( './models/stl/binary/pr2_head_pan.stl', function ( geometry ) {
|
|
|
|
|
@@ -151,10 +149,10 @@
|
|
|
|
|
|
// Lights
|
|
|
|
|
|
- scene.add( new THREE.HemisphereLight( 0x443333, 0x111122 ) );
|
|
|
+ scene.add( new THREE.HemisphereLight( 0x8d7c7c, 0x494966 ) );
|
|
|
|
|
|
addShadowedLight( 1, 1, 1, 0xffffff, 1.35 );
|
|
|
- addShadowedLight( 0.5, 1, - 1, 0xffaa00, 1 );
|
|
|
+ addShadowedLight( 0.5, 1, - 1, 0xffd500, 1 );
|
|
|
// renderer
|
|
|
|
|
|
renderer = new THREE.WebGLRenderer( { antialias: true } );
|