Setup a skybox mesh and add it to the scene.
npm i --save ebabel-skybox
The images to display inside the skybox are for each direction:
- ft: front
- bk: back
- up: up
- dn: down
- rt: right
- lf: left
const skybox = require('ebabel-skybox');
// Example graphic paths. Graphics not included in this module.
const directions = [
'../assets/whirlpool/large-files/whirlpool_ft.jpg',
'../assets/whirlpool/large-files/whirlpool_bk.jpg',
'../assets/whirlpool/large-files/whirlpool_up.jpg',
'../assets/whirlpool/large-files/whirlpool_dn.jpg',
'../assets/whirlpool/large-files/whirlpool_rt.jpg',
'../assets/whirlpool/large-files/whirlpool_lf.jpg',
];
skybox({ THREE, scene, directions });
- fork repository on github.com
- git clone 'fork repository'
- git checkout -b develop
npm install
npm test
npm run jsdoc