Merge branch 'refs/heads/master' into 889-ray-texture

This commit is contained in:
Zemledelec 2025-11-29 13:54:33 +04:00
commit e9fc88feaf
9 changed files with 56 additions and 5 deletions

10
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@openglobus/og",
"version": "0.27.20",
"version": "0.27.21",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@openglobus/og",
"version": "0.27.20",
"version": "0.27.21",
"license": "MIT",
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.18.6",
@ -6072,9 +6072,9 @@
"license": "MIT"
},
"node_modules/js-yaml": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",
"integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",
"dev": true,
"license": "MIT",
"dependencies": {

BIN
sandbox/skyBox/nx.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
sandbox/skyBox/ny.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
sandbox/skyBox/nz.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
sandbox/skyBox/px.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
sandbox/skyBox/py.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
sandbox/skyBox/pz.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>OpenGlobus SkyBox Example</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="./skyBox.js" type="module"></script>
<link rel="stylesheet" href="../../css/og.css" type="text/css" />
<style>
body {
padding: 0;
margin: 0;
font-family: Arial, sans-serif;
}
</style>
</head>
<body>
<div id="earth" style="position: absolute; width: 100%; height: 100%"></div>
</body>
</html>

28
sandbox/skyBox/skyBox.js Normal file
View File

@ -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 })
]
})