Browse Source

Examples: Clean up.

Mr.doob 5 years ago
parent
commit
56382ed5ce
1 changed files with 3 additions and 3 deletions
  1. 3 3
      examples/webgl_shader.html

+ 3 - 3
examples/webgl_shader.html

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