Skip to content

Commit

Permalink
latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterofowls committed Sep 9, 2024
1 parent 2bb2134 commit a6c907c
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 45 deletions.
7 changes: 6 additions & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions node_modules/commander/LICENSE

This file was deleted.

3 changes: 2 additions & 1 deletion node_modules/electron-to-chromium/full-chromium-versions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion node_modules/electron-to-chromium/full-versions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/electron-to-chromium/full-versions.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion node_modules/electron-to-chromium/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions node_modules/has-flag/license

This file was deleted.

9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.4",
"babel-loader": "^9.1.3",
"electron-to-chromium": "^1.5.18",
"three": "^0.168.0",
"webpack-cli": "^5.1.4"
},
Expand Down
12 changes: 12 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,18 @@ window.addEventListener('resize', () => {
camera.updateProjectionMatrix();
});

// Load Babylon.js online skybox textures using CubeTextureLoader
const skyboxLoader = new three.CubeTextureLoader();
const skyboxTexture = skyboxLoader.load([
'https://playground.babylonjs.com/textures/skybox_px.jpg',
'https://playground.babylonjs.com/textures/skybox_nx.jpg',
'https://playground.babylonjs.com/textures/skybox_py.jpg',
'https://playground.babylonjs.com/textures/skybox_ny.jpg',
'https://playground.babylonjs.com/textures/skybox_pz.jpg',
'https://playground.babylonjs.com/textures/skybox_nz.jpg'
]);
scene.background = skyboxTexture;

// Physics world
const world = new CANNON.World();
world.gravity.set(0, -9.82, 0);
Expand Down

0 comments on commit a6c907c

Please sign in to comment.