Created
May 22, 2018 12:00
-
-
Save w-jerome/cbb0c459937321d6eaadb3948f116eae to your computer and use it in GitHub Desktop.
Javascript — ThreeJS Animation with Tween
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
// Setup the animation loop. | |
function animate(time) { | |
requestAnimationFrame(animate); | |
TWEEN.update(time); | |
} | |
requestAnimationFrame(animate); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment