Skip to content

Instantly share code, notes, and snippets.

@gpolyn
Created May 11, 2016 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpolyn/f53baff049a761edec6d5fa3eb4690cc to your computer and use it in GitHub Desktop.
Save gpolyn/f53baff049a761edec6d5fa3eb4690cc to your computer and use it in GitHub Desktop.
// I have two scenes and I clear depth to handle visibility matter
animate(){
requestAnimationFrame( this._animate.bind(this) );
this._renderer.clear();
this._renderer.render( this._scene, this._camera );
this._renderer.clearDepth();
this._renderer.render( this._scene2, this._camera );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment