Skip to content

Instantly share code, notes, and snippets.

@SET001
Created July 24, 2015 22:49
Show Gist options
  • Save SET001/f1d1565535aaa0fa2949 to your computer and use it in GitHub Desktop.
Save SET001/f1d1565535aaa0fa2949 to your computer and use it in GitHub Desktop.
animate: (t) ->
@render()
window.requestAnimationFrame @animate.bind @
render: ->
@sceneHelpers.updateMatrixWorld()
@scene.updateMatrixWorld()
@renderer.render @scene, @camera
@renderer.render @sceneHelpers, @camera
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment