|
48 | 48 |
|
49 | 49 | let groundMirror, verticalMirror; |
50 | 50 |
|
| 51 | + THREE.ColorManagement.enabled = true; |
| 52 | + |
51 | 53 | init(); |
52 | 54 | animate(); |
53 | 55 |
|
|
87 | 89 | clipBias: 0.003, |
88 | 90 | textureWidth: window.innerWidth * window.devicePixelRatio, |
89 | 91 | textureHeight: window.innerHeight * window.devicePixelRatio, |
90 | | - color: 0x777777 |
| 92 | + color: 0xb5b5b5 |
91 | 93 | } ); |
92 | 94 | groundMirror.position.y = 0.5; |
93 | 95 | groundMirror.rotateX( - Math.PI / 2 ); |
|
98 | 100 | clipBias: 0.003, |
99 | 101 | textureWidth: window.innerWidth * window.devicePixelRatio, |
100 | 102 | textureHeight: window.innerHeight * window.devicePixelRatio, |
101 | | - color: 0x889999 |
| 103 | + color: 0xc1cbcb |
102 | 104 | } ); |
103 | 105 | verticalMirror.position.y = 50; |
104 | 106 | verticalMirror.position.z = - 50; |
|
109 | 111 | scene.add( sphereGroup ); |
110 | 112 |
|
111 | 113 | geometry = new THREE.CylinderGeometry( 0.1, 15 * Math.cos( Math.PI / 180 * 30 ), 0.1, 24, 1 ); |
112 | | - material = new THREE.MeshPhongMaterial( { color: 0xffffff, emissive: 0x444444 } ); |
| 114 | + material = new THREE.MeshPhongMaterial( { color: 0xffffff, emissive: 0x8d8d8d } ); |
113 | 115 | const sphereCap = new THREE.Mesh( geometry, material ); |
114 | 116 | sphereCap.position.y = - 15 * Math.sin( Math.PI / 180 * 30 ) - 0.05; |
115 | 117 | sphereCap.rotateX( - Math.PI ); |
|
124 | 126 | sphereGroup.add( halfSphere ); |
125 | 127 |
|
126 | 128 | geometry = new THREE.IcosahedronGeometry( 5, 0 ); |
127 | | - material = new THREE.MeshPhongMaterial( { color: 0xffffff, emissive: 0x333333, flatShading: true } ); |
| 129 | + material = new THREE.MeshPhongMaterial( { color: 0xffffff, emissive: 0x7b7b7b, flatShading: true } ); |
128 | 130 | smallSphere = new THREE.Mesh( geometry, material ); |
129 | 131 | scene.add( smallSphere ); |
130 | 132 |
|
|
138 | 140 | planeBottom.rotateX( - Math.PI / 2 ); |
139 | 141 | scene.add( planeBottom ); |
140 | 142 |
|
141 | | - const planeFront = new THREE.Mesh( planeGeo, new THREE.MeshPhongMaterial( { color: 0x7f7fff } ) ); |
| 143 | + const planeFront = new THREE.Mesh( planeGeo, new THREE.MeshPhongMaterial( { color: 0xbbbbfe } ) ); |
142 | 144 | planeFront.position.z = 50; |
143 | 145 | planeFront.position.y = 50; |
144 | 146 | planeFront.rotateY( Math.PI ); |
|
157 | 159 | scene.add( planeLeft ); |
158 | 160 |
|
159 | 161 | // lights |
160 | | - const mainLight = new THREE.PointLight( 0xcccccc, 1.5, 250 ); |
| 162 | + const mainLight = new THREE.PointLight( 0xe7e7e7, 1.5, 250 ); |
161 | 163 | mainLight.position.y = 60; |
162 | 164 | scene.add( mainLight ); |
163 | 165 |
|
|
169 | 171 | redLight.position.set( - 550, 50, 0 ); |
170 | 172 | scene.add( redLight ); |
171 | 173 |
|
172 | | - const blueLight = new THREE.PointLight( 0x7f7fff, 0.25, 1000 ); |
| 174 | + const blueLight = new THREE.PointLight( 0xbbbbfe, 0.25, 1000 ); |
173 | 175 | blueLight.position.set( 0, 50, 550 ); |
174 | 176 | scene.add( blueLight ); |
175 | 177 |
|
|
0 commit comments