/whs-component-skybox

Skybox component for Whitestormjs

Primary LanguageJavaScript

whs-component-skybox

Skybox plugin

Usage

Box Skybox

const skybox = new WHS.Skybox({
    skyType: 'box',
    imgSuffix: '.jpg',
    radius: 1000,
    fog: false,
    path: 'assets/DarkSea-'
});

skybox.addTo(GAME);

Sphere Skybox

const skybox = new WHS.Skybox({
    skyType: 'sphere',
    imgSuffix: '.jpg',
    radius: 100,
    fog: false,
    path: 'assets/sphere'
});

skybox.addTo(GAME);

Live examples

Credits for Assets in Examples