Procházet zdrojové kódy

Fixed example relying on old requestAnimationFrame.

Mr.doob před 12 roky
rodič
revize
3256f31398
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      examples/webgl_loader_collada_keyframe.html

+ 2 - 1
examples/webgl_loader_collada_keyframe.html

@@ -202,8 +202,9 @@
 
 
 			}
 			}
 
 
-			function animate( timestamp ) {
+			function animate() {
 
 
+				var timestamp = Date.now();
 				var frameTime = ( timestamp - lastTimestamp ) * 0.001; // seconds
 				var frameTime = ( timestamp - lastTimestamp ) * 0.001; // seconds
 
 
 				if ( progress >= 0 && progress < 48 ) {
 				if ( progress >= 0 && progress < 48 ) {