diff --git a/sandbox/skyBox/nx.webp b/sandbox/skyBox/nx.webp new file mode 100644 index 00000000..526e9dc4 Binary files /dev/null and b/sandbox/skyBox/nx.webp differ diff --git a/sandbox/skyBox/ny.webp b/sandbox/skyBox/ny.webp new file mode 100644 index 00000000..ac9d2460 Binary files /dev/null and b/sandbox/skyBox/ny.webp differ diff --git a/sandbox/skyBox/nz.webp b/sandbox/skyBox/nz.webp new file mode 100644 index 00000000..ad1cc681 Binary files /dev/null and b/sandbox/skyBox/nz.webp differ diff --git a/sandbox/skyBox/px.webp b/sandbox/skyBox/px.webp new file mode 100644 index 00000000..d76375ba Binary files /dev/null and b/sandbox/skyBox/px.webp differ diff --git a/sandbox/skyBox/py.webp b/sandbox/skyBox/py.webp new file mode 100644 index 00000000..c0ba09b4 Binary files /dev/null and b/sandbox/skyBox/py.webp differ diff --git a/sandbox/skyBox/pz.webp b/sandbox/skyBox/pz.webp new file mode 100644 index 00000000..e672c58c Binary files /dev/null and b/sandbox/skyBox/pz.webp differ diff --git a/sandbox/skyBox/skyBox.html b/sandbox/skyBox/skyBox.html new file mode 100644 index 00000000..34c55d55 --- /dev/null +++ b/sandbox/skyBox/skyBox.html @@ -0,0 +1,23 @@ + + + + + OpenGlobus SkyBox Example + + + + + + + + +
+ + + \ No newline at end of file diff --git a/sandbox/skyBox/skyBox.js b/sandbox/skyBox/skyBox.js new file mode 100644 index 00000000..b994a792 --- /dev/null +++ b/sandbox/skyBox/skyBox.js @@ -0,0 +1,28 @@ +import { + Globe, + LonLat, + OpenStreetMap, + scene, + control +} from "../../lib/og.es.js"; + +const skybox = new scene.SkyBox({ + px: "./px.webp", + nx: "./nx.webp", + py: "./py.webp", + ny: "./ny.webp", + pz: "./pz.webp", + nz: "./nz.webp" +}); + +const globus = new Globe({ + target: "earth", + name: "Earth", + layers: [new OpenStreetMap()], + atmosphereEnabled: true, + skybox: skybox, + controls: [ + new control.MouseNavigation({ minSlope: 0.35 }), + new control.KeyboardNavigation({ autoActivate: true }) + ] +}) \ No newline at end of file