ebabel-skybox

2.1.4 • Public • Published

ebabel-skybox

Build Status

Setup a skybox mesh and add it to the scene.

Instructions for Module Usage in your project/game

Install

npm i --save ebabel-skybox

Usage

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 });

Instructions for further development of this module i.e. ebabel-skybox

Fork and clone repo, then start your new develop branch

  • fork repository on github.com
  • git clone 'fork repository'
  • git checkout -b develop

First step when developing this module

npm install

Before checking in code test this module

npm test

Generate documentation for this module

npm run jsdoc

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i ebabel-skybox

    Weekly Downloads

    8

    Version

    2.1.4

    License

    GPL-3.0

    Unpacked Size

    50.2 kB

    Total Files

    18

    Last publish

    Collaborators

    • ebabel-eu