Created
May 11, 2016 20:01
-
-
Save gpolyn/f53baff049a761edec6d5fa3eb4690cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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