|
@@ -1,7 +1,5 @@
|
|
|
/**
|
|
|
* @author mrdoob / http://mrdoob.com/
|
|
|
- * @author Larry Battle / http://bateru.com/news
|
|
|
- * @author bhouston / http://exocortex.com
|
|
|
*/
|
|
|
|
|
|
var THREE = { REVISION: '68dev' };
|
|
@@ -13,55 +11,6 @@ if ( typeof module === 'object' ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
-self.console = self.console || {
|
|
|
-
|
|
|
- info: function () {},
|
|
|
- log: function () {},
|
|
|
- debug: function () {},
|
|
|
- warn: function () {},
|
|
|
- error: function () {}
|
|
|
-
|
|
|
-};
|
|
|
-
|
|
|
-// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
|
|
|
-// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
|
|
|
-
|
|
|
-// requestAnimationFrame polyfill by Erik Möller
|
|
|
-// fixes from Paul Irish and Tino Zijdel
|
|
|
-// using 'self' instead of 'window' for compatibility with both NodeJS and IE10.
|
|
|
-( function () {
|
|
|
-
|
|
|
- var lastTime = 0;
|
|
|
- var vendors = [ 'ms', 'moz', 'webkit', 'o' ];
|
|
|
-
|
|
|
- for ( var x = 0; x < vendors.length && !self.requestAnimationFrame; ++ x ) {
|
|
|
-
|
|
|
- self.requestAnimationFrame = self[ vendors[ x ] + 'RequestAnimationFrame' ];
|
|
|
- self.cancelAnimationFrame = self[ vendors[ x ] + 'CancelAnimationFrame' ] || self[ vendors[ x ] + 'CancelRequestAnimationFrame' ];
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if ( self.requestAnimationFrame === undefined && self['setTimeout'] !== undefined ) {
|
|
|
-
|
|
|
- self.requestAnimationFrame = function ( callback ) {
|
|
|
-
|
|
|
- var currTime = Date.now(), timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) );
|
|
|
- var id = self.setTimeout( function() { callback( currTime + timeToCall ); }, timeToCall );
|
|
|
- lastTime = currTime + timeToCall;
|
|
|
- return id;
|
|
|
-
|
|
|
- };
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if( self.cancelAnimationFrame === undefined && self['clearTimeout'] !== undefined ) {
|
|
|
-
|
|
|
- self.cancelAnimationFrame = function ( id ) { self.clearTimeout( id ) };
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
-}() );
|
|
|
-
|
|
|
// GL STATE CONSTANTS
|
|
|
|
|
|
THREE.CullFaceNone = 0;
|