Skip to content

Commit

Permalink
feat: update vanilla three example
Browse files Browse the repository at this point in the history
  • Loading branch information
isaac-mason committed Oct 15, 2024
1 parent d8d3525 commit 377f958
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions examples/three-vanilla-example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<script type="importmap">
{
"imports": {
"@recast-navigation/core": "https://unpkg.com/@recast-navigation/core@0.29.0/dist/index.mjs",
"@recast-navigation/wasm": "https://unpkg.com/@recast-navigation/wasm@0.29.0/dist/recast-navigation.wasm-compat.js",
"@recast-navigation/generators": "https://unpkg.com/@recast-navigation/generators@0.29.0/dist/index.mjs",
"@recast-navigation/three": "https://unpkg.com/@recast-navigation/three@0.29.0/dist/index.mjs",
"three": "https://unpkg.com/three@0.164.0/build/three.module.js",
"three/examples/jsm/controls/OrbitControls": "https://unpkg.com/three@0.164.0/examples/jsm/controls/OrbitControls.js"
"@recast-navigation/core": "https://unpkg.com/@recast-navigation/core@0.35.0/dist/index.mjs",
"@recast-navigation/wasm": "https://unpkg.com/@recast-navigation/wasm@0.35.0/dist/recast-navigation.wasm-compat.js",
"@recast-navigation/generators": "https://unpkg.com/@recast-navigation/generators@0.35.0/dist/index.mjs",
"@recast-navigation/three": "https://unpkg.com/@recast-navigation/three@0.35.0/dist/index.mjs",
"three": "https://unpkg.com/three@0.169.0/build/three.module.js",
"three/examples/jsm/controls/OrbitControls": "https://unpkg.com/three@0.169.0/examples/jsm/controls/OrbitControls.js"
}
}
</script>
Expand Down Expand Up @@ -119,8 +119,6 @@

// handle resizing
const onWindowResize = () => {
debugDrawer.resize(window.innerWidth, window.innerHeight);

camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
Expand Down

0 comments on commit 377f958

Please sign in to comment.