Skip to content

Instantly share code, notes, and snippets.

@bilalucar
Created April 28, 2017 07:12
Show Gist options
  • Save bilalucar/5c40bb0482424b242c46cc69e76f76d3 to your computer and use it in GitHub Desktop.
Save bilalucar/5c40bb0482424b242c46cc69e76f76d3 to your computer and use it in GitHub Desktop.
Creates a new Three.js
const app = new WHS.App([
new WHS.app.ElementModule(), // attach to DOM
new WHS.app.SceneModule(), // creates THREE.Scene instance
new WHS.app.CameraModule(), // creates PerspectiveCamera instance
new WHS.app.RenderingModule() // creates WebGLRenderer instance
]);
app.start(); // run animation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment