|
68 | 68 | }
|
69 | 69 | </style>
|
70 | 70 |
|
71 |
| - <script async src="https://unpkg.com/es-module-shims@1.3.6/dist/es-module-shims.js"></script> |
| 71 | + <script async src="https://cdn.jsdelivr.net/npm/es-module-shims@2.0.10/dist/es-module-shims.min.js"></script> |
72 | 72 | <script type="importmap">
|
73 | 73 | {
|
74 | 74 | "imports": {
|
75 |
| - "three": "https://unpkg.com/three@0.154.0/build/three.module.js", |
76 |
| - "three-examples/": "https://unpkg.com/three@0.154.0/examples/jsm/" |
| 75 | + "three": "https://cdn.jsdelivr.net/npm/three@0.174.0/build/three.module.js", |
| 76 | + "three-examples/": "https://cdn.jsdelivr.net/npm/three@0.174.0/examples/jsm/", |
| 77 | + "lil-gui": "https://cdn.jsdelivr.net/npm/lil-gui@0.20.0/dist/lil-gui.esm.js" |
77 | 78 | }
|
78 | 79 | }
|
79 | 80 | </script>
|
|
91 | 92 | import { mergeVertices } from 'three-examples/utils/BufferGeometryUtils.js';
|
92 | 93 | import { MeshoptDecoder } from '../js/meshopt_decoder.module.js';
|
93 | 94 | import { MeshoptSimplifier } from '../js/meshopt_simplifier.module.js';
|
94 |
| - import { GUI } from 'https://unpkg.com/lil-gui@0.17.0/dist/lil-gui.esm.js'; |
| 95 | + import { GUI } from 'lil-gui'; |
95 | 96 |
|
96 | 97 | var container, gridContainer;
|
97 | 98 | var camera, clock;
|
|
282 | 283 | scenes.push(scene);
|
283 | 284 |
|
284 | 285 | // Add lighting
|
285 |
| - var ambientLight = new THREE.AmbientLight(0xcccccc, 0.3); |
| 286 | + var ambientLight = new THREE.AmbientLight(0xcccccc, 1); |
286 | 287 | scene.add(ambientLight);
|
287 | 288 |
|
288 |
| - var pointLight = new THREE.PointLight(0xffffff, 0.8); |
| 289 | + var pointLight = new THREE.PointLight(0xffffff, 4); |
289 | 290 | pointLight.position.set(3, 3, 0);
|
| 291 | + pointLight.decay = 0.5; |
290 | 292 | scene.add(pointLight);
|
291 | 293 |
|
292 | 294 | // Create controls
|
|
0 commit comments