|
@@ -89,12 +89,10 @@ THREE.Math = {
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
- // Random float from <0, 1> with 16 bits of randomness
|
|
|
|
- // (standard Math.random() creates repetitive patterns when applied over larger space)
|
|
|
|
-
|
|
|
|
random16: function () {
|
|
random16: function () {
|
|
|
|
|
|
- return ( 65280 * Math.random() + 255 * Math.random() ) / 65535;
|
|
|
|
|
|
+ console.warn( 'THREE.Math.random16() has been deprecated. Use Math.random() instead.' );
|
|
|
|
+ return Math.random();
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|