Skip to content

Instantly share code, notes, and snippets.

@yoavlt
Created July 1, 2013 18:14
Show Gist options
  • Save yoavlt/5903207 to your computer and use it in GitHub Desktop.
Save yoavlt/5903207 to your computer and use it in GitHub Desktop.
define ['app/component/world'], (World) ->
class MainWindow
constructor: ->
@world = new World()
@renderer = new THREE.WebGLRenderer()
@renderer.setSize(window.innerWidth, window.innerHeight)
document.body.appendChild(@renderer.domElement)
update: ->
@world.update()
@renderer.render(@world.scene, @world.camera)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment