mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
README: Added RequestAnimationFrame.js tip
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2010-2011 Three.js Authors. All rights reserved.
|
||||
Copyright (c) 2010-2011 three.js Authors. All rights reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -117,7 +117,7 @@ This code creates a camera, then creates a scene object, adds a bunch of random
|
||||
|
||||
function animate() {
|
||||
|
||||
requestAnimationFrame( animate );
|
||||
requestAnimationFrame( animate ); // Include examples/js/RequestAnimationFrame.js for cross-browser compatibility.
|
||||
render();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user