Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.