Skip to content

Commit a09145e

Browse files
committed
updates to portal scene
1 parent 7a333b2 commit a09145e

16 files changed

+4136
-0
lines changed

threejs-portal/.gitkeep

Whitespace-only changes.

threejs-portal/assets/index-30328936.js

Lines changed: 3713 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

threejs-portal/assets/index-30328936.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*{margin:0;padding:0}html,body{overflow:hidden}.webgl{position:fixed;top:0;left:0;outline:none}

threejs-portal/backed.jpg

826 KB
Loading

threejs-portal/draco/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Draco 3D Data Compression
2+
3+
Draco is an open-source library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics.
4+
5+
[Website](https://google.github.io/draco/) | [GitHub](https://github.com/google/draco)
6+
7+
## Contents
8+
9+
This folder contains three utilities:
10+
11+
* `draco_decoder.js` — Emscripten-compiled decoder, compatible with any modern browser.
12+
* `draco_decoder.wasm` — WebAssembly decoder, compatible with newer browsers and devices.
13+
* `draco_wasm_wrapper.js` — JavaScript wrapper for the WASM decoder.
14+
15+
Each file is provided in two variations:
16+
17+
* **Default:** Latest stable builds, tracking the project's [master branch](https://github.com/google/draco).
18+
* **glTF:** Builds targeted by the [glTF mesh compression extension](https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression), tracking the [corresponding Draco branch](https://github.com/google/draco/tree/gltf_2.0_draco_extension).
19+
20+
Either variation may be used with `THREE.DRACOLoader`:
21+
22+
```js
23+
var dracoLoader = new THREE.DRACOLoader();
24+
dracoLoader.setDecoderPath('path/to/decoders/');
25+
dracoLoader.setDecoderConfig({type: 'js'}); // (Optional) Override detection of WASM support.
26+
```
27+
28+
Further [documentation on GitHub](https://github.com/google/draco/tree/master/javascript/example#static-loading-javascript-decoder).
29+
30+
## License
31+
32+
[Apache License 2.0](https://github.com/google/draco/blob/master/LICENSE)

threejs-portal/draco/draco_decoder.js

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
275 KB
Binary file not shown.

threejs-portal/draco/draco_encoder.js

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

threejs-portal/draco/draco_wasm_wrapper.js

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

threejs-portal/draco/gltf/draco_decoder.js

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
190 KB
Binary file not shown.

threejs-portal/draco/gltf/draco_encoder.js

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

threejs-portal/draco/gltf/draco_wasm_wrapper.js

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

threejs-portal/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>39 - Adding details to the scene</title>
7+
8+
<script type="module" crossorigin src="./assets/index-30328936.js"></script>
9+
<link rel="stylesheet" href="./assets/index-60c247ed.css">
10+
</head>
11+
<body>
12+
<canvas class="webgl"></canvas>
13+
14+
</body>
15+
</html>

threejs-portal/portal.glb

40.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)