Skip to content

Commit

Permalink
Upd example import
Browse files Browse the repository at this point in the history
  • Loading branch information
vasturiano committed Dec 13, 2024
1 parent 38f5c69 commit 54e2cad
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions example/solar-terminator/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
<head>
<script type="importmap">{ "imports": {
"three": "https://esm.sh/three",
"three/addons/": "https://esm.sh/three/examples/jsm/"
}}</script>
<script type="module">
import * as THREE from 'three';
window.THREE = THREE;
</script>

<script src="//unpkg.com/three-globe" defer></script>
<!-- <script src="../../dist/three-globe.js" defer></script>-->

<style>
body {
margin: 0;
Expand All @@ -12,20 +24,6 @@
color: lightblue;
}
</style>

<script type="importmap">{ "imports": {
"three": "https://esm.sh/three",
"three/addons/": "https://esm.sh/three/examples/jsm/"
}}</script>
<script type="module">
import * as THREE from 'three';
window.THREE = THREE;
</script>

<script src="//unpkg.com/three-globe" defer></script>
<!-- <script src="../../dist/three-globe.js" defer></script>-->

<script src="//unpkg.com/solar-calculator"></script>
</head>

<body>
Expand All @@ -35,6 +33,7 @@

<script type="module">
import { TrackballControls } from 'three/addons/controls/TrackballControls.js';
import * as solar from 'https://esm.sh/solar-calculator';

const VELOCITY = 9; // minutes per frame

Expand Down

0 comments on commit 54e2cad

Please sign in to comment.