Mr.doob 5 роки тому
батько
коміт
56382ed5ce
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      examples/webgl_shader.html

+ 3 - 3
examples/webgl_shader.html

@@ -74,7 +74,7 @@
 			var uniforms;
 
 			init();
-			animate( 0 );
+			animate();
 
 			function init() {
 
@@ -119,11 +119,11 @@
 
 			//
 
-			function animate( timestamp ) {
+			function animate() {
 
 				requestAnimationFrame( animate );
 
-				uniforms[ "time" ].value = timestamp / 1000;
+				uniforms[ "time" ].value = performance.now() / 1000;
 
 				renderer.render( scene, camera );