|
@@ -7,12 +7,29 @@
|
|
|
var THREE = { REVISION: '69dev' };
|
|
|
|
|
|
// browserify support
|
|
|
+
|
|
|
if ( typeof module === 'object' ) {
|
|
|
|
|
|
module.exports = THREE;
|
|
|
|
|
|
}
|
|
|
|
|
|
+// polyfills
|
|
|
+
|
|
|
+if ( Math.sign === undefined ) {
|
|
|
+
|
|
|
+ Math.sign = function ( x ) {
|
|
|
+
|
|
|
+ return ( x < 0 ) ? - 1 : ( x > 0 ) ? 1 : 0;
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent.button
|
|
|
+
|
|
|
+THREE.MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2 };
|
|
|
+
|
|
|
// GL STATE CONSTANTS
|
|
|
|
|
|
THREE.CullFaceNone = 0;
|
|
@@ -6436,12 +6453,6 @@ THREE.Math = {
|
|
|
|
|
|
},
|
|
|
|
|
|
- sign: function ( x ) {
|
|
|
-
|
|
|
- return ( x < 0 ) ? - 1 : ( x > 0 ) ? 1 : 0;
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
degToRad: function () {
|
|
|
|
|
|
var degreeToRadiansFactor = Math.PI / 180;
|