whs.js/docs/data/Welcome.md
Alexander Buzin 8bb2ae2380 Merge pull request #347 from panaweec/pp-dev
Update WHY.md

Former-commit-id: bb11c5540da98bc4aa0b7df8a4076efa8b5a2349
2018-06-26 23:17:34 +03:00

1.0 KiB

Welcome to whs.js docs!

whs.js is a framework for 3D web apps built with Three.js technology.

# Install npm version
$ npm install whs

It implements a core with component system and plugin support for fast development of 3D scene with physics.

Automizing your web app with whitestorm is fast and comfortable. This engine has physics support implemented by custom Physi.js library, which is much faster than others. Framework provides extended component control and high frame rate, because it uses WebWorkers technology for multithreading.

const app = new WHS.App([
  new WHS.ElementModule(), // Apply to DOM.
  new WHS.SceneModule(), // Create a new THREE.Scene and set it to app.

  new WHS.DefineModule('camera', new WHS.PerspectiveCamera({ // Apply a camera.
    position: new THREE.Vector3(0, 0, 50)
  })),

  new WHS.RenderingModule({bgColor: 0x162129}), // Apply THREE.WebGLRenderer
  new WHS.ResizeModule() // Make it resizable.
]);

app.start(); // Run app.

> featured projects