Created
April 28, 2017 07:12
-
-
Save bilalucar/5c40bb0482424b242c46cc69e76f76d3 to your computer and use it in GitHub Desktop.
Creates a new Three.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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