https://github.com/whitestormjs/whs-component-skybox
Skybox component for Whitestormjs
https://github.com/whitestormjs/whs-component-skybox
Last synced: 4 months ago
JSON representation
Skybox component for Whitestormjs
- Host: GitHub
- URL: https://github.com/whitestormjs/whs-component-skybox
- Owner: WhitestormJS
- Created: 2016-09-22T17:28:16.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-06T09:39:08.000Z (over 8 years ago)
- Last Synced: 2025-01-15T17:32:52.244Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 2.36 MB
- Stars: 0
- Watchers: 16
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# whs-component-skybox
Skybox plugin# Usage
### Box Skybox
```javascript
const skybox = new WHS.Skybox({
skyType: 'box',
imgSuffix: '.jpg',
radius: 1000,
fog: false,
path: 'assets/DarkSea-'
});skybox.addTo(GAME);
```### Sphere Skybox
```javascript
const skybox = new WHS.Skybox({
skyType: 'sphere',
imgSuffix: '.jpg',
radius: 100,
fog: false,
path: 'assets/sphere'
});skybox.addTo(GAME);
```
## Live examples
- [Box Skybox](http://whitestormjs.xyz/whs-component-skybox/examples/box.html)
- [Sphere Skybox](http://whitestormjs.xyz/whs-component-skybox/examples/sphere.html)Credits for Assets in Examples
- [Box Skybox Assets](https://github.com/stemkoski/stemkoski.github.com)
- [Sphere Skybox Assets](http://macsix.deviantart.com/art/Anvil-Spherical-HDRI-Panorama-Skybox-416317312)