Browse Source

Merge pull request #15524 from linbingquan/clean-up

Examples: Clean up
Mr.doob 6 years ago
parent
commit
4cb966e6e8
1 changed files with 6 additions and 2 deletions
  1. 6 2
      examples/js/offscreen/scene.js

+ 6 - 2
examples/js/offscreen/scene.js

@@ -71,7 +71,11 @@ function animate() {
 // PRNG
 // PRNG
 
 
 var seed = 1;
 var seed = 1;
+
 function random() {
 function random() {
-	var x = Math.sin(seed++) * 10000;
-	return x - Math.floor(x);
+
+	var x = Math.sin( seed ++ ) * 10000;
+
+	return x - Math.floor( x );
+
 }
 }