1 /**
  2  * @author mrdoob / http://mrdoob.com/
  3  * @author Larry Battle / http://bateru.com/news
  4  */
  5 
  6 /**@namespace*/
  7 var THREE = THREE || { REVISION: '53' };
  8 
  9 self.console = self.console || {
 10 
 11 	info: function () {},
 12 	log: function () {},
 13 	debug: function () {},
 14 	warn: function () {},
 15 	error: function () {}
 16 
 17 };
 18 
 19 self.Int32Array = self.Int32Array || Array;
 20 self.Float32Array = self.Float32Array || Array;
 21 
 22 // Shims for "startsWith", "endsWith", and "trim" for browsers where this is not yet implemented
 23 // not sure we should have this, or at least not have it here
 24 
 25 // http://stackoverflow.com/questions/646628/javascript-startswith
 26 // http://stackoverflow.com/questions/498970/how-do-i-trim-a-string-in-javascript
 27 // http://wiki.ecmascript.org/doku.php?id=harmony%3astring_extras
 28 
 29 String.prototype.startsWith = String.prototype.startsWith || function ( str ) {
 30 
 31 	return this.slice( 0, str.length ) === str;
 32 
 33 };
 34 
 35 String.prototype.endsWith = String.prototype.endsWith || function ( str ) {
 36 
 37 	var t = String( str );
 38 	var index = this.lastIndexOf( t );
 39 	return ( -1 < index && index ) === (this.length - t.length);
 40 
 41 };
 42 
 43 String.prototype.trim = String.prototype.trim || function () {
 44 
 45 	return this.replace( /^\s+|\s+$/g, '' );
 46 
 47 };
 48 
 49 
 50 // http://paulirish.com/2011/requestanimationframe-for-smart-animating/
 51 // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
 52 
 53 // requestAnimationFrame polyfill by Erik Möller
 54 // fixes from Paul Irish and Tino Zijdel
 55 
 56 ( function () {
 57 
 58 	var lastTime = 0;
 59 	var vendors = [ 'ms', 'moz', 'webkit', 'o' ];
 60 
 61 	for ( var x = 0; x < vendors.length && !window.requestAnimationFrame; ++ x ) {
 62 
 63 		window.requestAnimationFrame = window[ vendors[ x ] + 'RequestAnimationFrame' ];
 64 		window.cancelAnimationFrame = window[ vendors[ x ] + 'CancelAnimationFrame' ] || window[ vendors[ x ] + 'CancelRequestAnimationFrame' ];
 65 
 66 	}
 67 
 68 	if ( window.requestAnimationFrame === undefined ) {
 69 
 70 		window.requestAnimationFrame = function ( callback, element ) {
 71 
 72 			var currTime = Date.now(), timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) );
 73 			var id = window.setTimeout( function() { callback( currTime + timeToCall ); }, timeToCall );
 74 			lastTime = currTime + timeToCall;
 75 			return id;
 76 
 77 		};
 78 
 79 	}
 80 
 81 	window.cancelAnimationFrame = window.cancelAnimationFrame || function ( id ) { window.clearTimeout( id ) };
 82 
 83 }() );
 84 
 85 
 86 // MATERIAL CONSTANTS
 87 
 88 // side
 89 /**@fieldOf THREE
 90 @field
 91 @name FrontSide*/
 92 THREE.FrontSide = 0;
 93 /**@fieldOf THREE
 94 @field
 95 @name BackSide*/
 96 THREE.BackSide = 1;
 97 /**@fieldOf THREE
 98 @field
 99 @name DoubleSide*/
100 THREE.DoubleSide = 2;
101 
102 // shading
103 
104 /**@fieldOf THREE
105 @field
106 @name NoShading*/
107 THREE.NoShading = 0;
108 /**@fieldOf THREE
109 @field
110 @name FlatShading*/
111 THREE.FlatShading = 1;
112 /**@fieldOf THREE
113 @field
114 @name SmoothShading*/
115 THREE.SmoothShading = 2;
116 
117 // colors
118 
119 /**@fieldOf THREE
120 @field
121 @name NoColors*/
122 THREE.NoColors = 0;
123 /**@fieldOf THREE
124 @field
125 @name FaceColors*/
126 THREE.FaceColors = 1;
127 /**@fieldOf THREE
128 @field
129 @name VertexColors*/
130 THREE.VertexColors = 2;
131 
132 // blending modes
133 
134 /**@fieldOf THREE
135 @field
136 @name NoBlending*/
137 THREE.NoBlending = 0;
138 /**@fieldOf THREE
139 @field
140 @name NormalBlending*/
141 THREE.NormalBlending = 1;
142 /**@fieldOf THREE
143 @field
144 @name AdditiveBlending*/
145 THREE.AdditiveBlending = 2;
146 /**@fieldOf THREE
147 @field
148 @name SubtractiveBlending*/
149 THREE.SubtractiveBlending = 3;
150 /**@fieldOf THREE
151 @field
152 @name MultiplyBlending*/
153 THREE.MultiplyBlending = 4;
154 /**@fieldOf THREE
155 @field
156 @name CustomBlending*/
157 THREE.CustomBlending = 5;
158 
159 // custom blending equations
160 // (numbers start from 100 not to clash with other
161 //  mappings to OpenGL constants defined in Texture.js)
162 
163 /**@fieldOf THREE
164 @field
165 @name AddEquation*/
166 THREE.AddEquation = 100;
167 /**@fieldOf THREE
168 @field
169 @name SubtractEquation*/
170 THREE.SubtractEquation = 101;
171 /**@fieldOf THREE
172 @field
173 @name ReverseSubtractEquation*/
174 THREE.ReverseSubtractEquation = 102;
175 
176 // custom blending destination factors
177 
178 /**@fieldOf THREE
179 @field
180 @name ZeroFactor*/
181 THREE.ZeroFactor = 200;
182 /**@fieldOf THREE
183 @field
184 @name OneFactor*/
185 THREE.OneFactor = 201;
186 /**@fieldOf THREE
187 @field
188 @name SrcColorFactor*/
189 THREE.SrcColorFactor = 202;
190 /**@fieldOf THREE
191 @field
192 @name OneMinusSrcColorFactor*/
193 THREE.OneMinusSrcColorFactor = 203;
194 /**@fieldOf THREE
195 @field
196 @name SrcAlphaFactor*/
197 THREE.SrcAlphaFactor = 204;
198 /**@fieldOf THREE
199 @field
200 @name OneMinusSrcAlphaFactor*/
201 THREE.OneMinusSrcAlphaFactor = 205;
202 /**@fieldOf THREE
203 @field
204 @name DstAlphaFactor*/
205 THREE.DstAlphaFactor = 206;
206 /**@fieldOf THREE
207 @field
208 @name OneMinusDstAlphaFactor*/
209 THREE.OneMinusDstAlphaFactor = 207;
210 
211 // custom blending source factors
212 
213 ///**@fieldOf THREE
214 @field
215 @name ZeroFactor*/
216 THREE.ZeroFactor = 200;
217 ///**@fieldOf THREE
218 @field
219 @name OneFactor*/
220 THREE.OneFactor = 201;
221 ///**@fieldOf THREE
222 @field
223 @name SrcAlphaFactor*/
224 THREE.SrcAlphaFactor = 204;
225 ///**@fieldOf THREE
226 @field
227 @name OneMinusSrcAlphaFactor*/
228 THREE.OneMinusSrcAlphaFactor = 205;
229 ///**@fieldOf THREE
230 @field
231 @name DstAlphaFactor*/
232 THREE.DstAlphaFactor = 206;
233 ///**@fieldOf THREE
234 @field
235 @name OneMinusDstAlphaFactor*/
236 THREE.OneMinusDstAlphaFactor = 207;
237 /**@fieldOf THREE
238 @field
239 @name DstColorFactor*/
240 THREE.DstColorFactor = 208;
241 /**@fieldOf THREE
242 @field
243 @name OneMinusDstColorFactor*/
244 THREE.OneMinusDstColorFactor = 209;
245 /**@fieldOf THREE
246 @field
247 @name SrcAlphaSaturateFactor*/
248 THREE.SrcAlphaSaturateFactor = 210;
249 
250 
251 // TEXTURE CONSTANTS
252 
253 /**@fieldOf THREE
254 @field
255 @name MultiplyOperation*/
256 THREE.MultiplyOperation = 0;
257 /**@fieldOf THREE
258 @field
259 @name MixOperation*/
260 THREE.MixOperation = 1;
261 /**@fieldOf THREE
262 @field
263 @name AddOperation*/
264 THREE.AddOperation = 2;
265 
266 // Mapping modes
267 
268 /**@constructor*/
269 /**@fieldOf THREE
270 @field
271 @name UVMapping*/
272 THREE.UVMapping = function () {};
273 
274 /**@constructor*/
275 /**@fieldOf THREE
276 @field
277 @name CubeReflectionMapping*/
278 THREE.CubeReflectionMapping = function () {};
279 /**@constructor*/
280 /**@fieldOf THREE
281 @field
282 @name CubeRefractionMapping*/
283 THREE.CubeRefractionMapping = function () {};
284 
285 /**@constructor*/
286 /**@fieldOf THREE
287 @field
288 @name SphericalReflectionMapping*/
289 THREE.SphericalReflectionMapping = function () {};
290 /**@constructor*/
291 /**@fieldOf THREE
292 @field
293 @name SphericalRefractionMapping*/
294 THREE.SphericalRefractionMapping = function () {};
295 
296 // Wrapping modes
297 
298 /**@fieldOf THREE
299 @field
300 @name RepeatWrapping*/
301 THREE.RepeatWrapping = 1000;
302 /**@fieldOf THREE
303 @field
304 @name ClampToEdgeWrapping*/
305 THREE.ClampToEdgeWrapping = 1001;
306 /**@fieldOf THREE
307 @field
308 @name MirroredRepeatWrapping*/
309 THREE.MirroredRepeatWrapping = 1002;
310 
311 // Filters
312 
313 /**@fieldOf THREE
314 @field
315 @name NearestFilter*/
316 THREE.NearestFilter = 1003;
317 /**@fieldOf THREE
318 @field
319 @name NearestMipMapNearestFilter*/
320 THREE.NearestMipMapNearestFilter = 1004;
321 /**@fieldOf THREE
322 @field
323 @name NearestMipMapLinearFilter*/
324 THREE.NearestMipMapLinearFilter = 1005;
325 /**@fieldOf THREE
326 @field
327 @name LinearFilter*/
328 THREE.LinearFilter = 1006;
329 /**@fieldOf THREE
330 @field
331 @name LinearMipMapNearestFilter*/
332 THREE.LinearMipMapNearestFilter = 1007;
333 /**@fieldOf THREE
334 @field
335 @name LinearMipMapLinearFilter*/
336 THREE.LinearMipMapLinearFilter = 1008;
337 
338 // Data types
339 
340 /**@fieldOf THREE
341 @field
342 @name UnsignedByteType*/
343 THREE.UnsignedByteType = 1009;
344 /**@fieldOf THREE
345 @field
346 @name ByteType*/
347 THREE.ByteType = 1010;
348 /**@fieldOf THREE
349 @field
350 @name ShortType*/
351 THREE.ShortType = 1011;
352 /**@fieldOf THREE
353 @field
354 @name UnsignedShortType*/
355 THREE.UnsignedShortType = 1012;
356 /**@fieldOf THREE
357 @field
358 @name IntType*/
359 THREE.IntType = 1013;
360 /**@fieldOf THREE
361 @field
362 @name UnsignedIntType*/
363 THREE.UnsignedIntType = 1014;
364 /**@fieldOf THREE
365 @field
366 @name FloatType*/
367 THREE.FloatType = 1015;
368 
369 // Pixel types
370 
371 ///**@fieldOf THREE
372 @field
373 @name UnsignedByteType*/
374 THREE.UnsignedByteType = 1009;
375 /**@fieldOf THREE
376 @field
377 @name UnsignedShort4444Type*/
378 THREE.UnsignedShort4444Type = 1016;
379 /**@fieldOf THREE
380 @field
381 @name UnsignedShort5551Type*/
382 THREE.UnsignedShort5551Type = 1017;
383 /**@fieldOf THREE
384 @field
385 @name UnsignedShort565Type*/
386 THREE.UnsignedShort565Type = 1018;
387 
388 // Pixel formats
389 
390 /**@fieldOf THREE
391 @field
392 @name AlphaFormat*/
393 THREE.AlphaFormat = 1019;
394 /**@fieldOf THREE
395 @field
396 @name RGBFormat*/
397 THREE.RGBFormat = 1020;
398 /**@fieldOf THREE
399 @field
400 @name RGBAFormat*/
401 THREE.RGBAFormat = 1021;
402 /**@fieldOf THREE
403 @field
404 @name LuminanceFormat*/
405 THREE.LuminanceFormat = 1022;
406 /**@fieldOf THREE
407 @field
408 @name LuminanceAlphaFormat*/
409 THREE.LuminanceAlphaFormat = 1023;
410 
411 // Compressed texture formats
412 
413 /**@fieldOf THREE
414 @field
415 @name RGB_S3TC_DXT1_Format*/
416 THREE.RGB_S3TC_DXT1_Format = 2001;
417 /**@fieldOf THREE
418 @field
419 @name RGBA_S3TC_DXT1_Format*/
420 THREE.RGBA_S3TC_DXT1_Format = 2002;
421 /**@fieldOf THREE
422 @field
423 @name RGBA_S3TC_DXT3_Format*/
424 THREE.RGBA_S3TC_DXT3_Format = 2003;
425 /**@fieldOf THREE
426 @field
427 @name RGBA_S3TC_DXT5_Format*/
428 THREE.RGBA_S3TC_DXT5_Format = 2004;
429 
430 /*
431 // Potential future PVRTC compressed texture formats
432 /**@fieldOf THREE
433 @field
434 @name RGB_PVRTC_4BPPV1_Format*/
435 THREE.RGB_PVRTC_4BPPV1_Format = 2100;
436 /**@fieldOf THREE
437 @field
438 @name RGB_PVRTC_2BPPV1_Format*/
439 THREE.RGB_PVRTC_2BPPV1_Format = 2101;
440 /**@fieldOf THREE
441 @field
442 @name RGBA_PVRTC_4BPPV1_Format*/
443 THREE.RGBA_PVRTC_4BPPV1_Format = 2102;
444 /**@fieldOf THREE
445 @field
446 @name RGBA_PVRTC_2BPPV1_Format*/
447 THREE.RGBA_PVRTC_2BPPV1_Format = 2103;
448 *

nike free rn new balance hombre baratas cinturones gucci ugg rebajas cinturon gucci ray ban baratas nike cortez peuterey mujer christian louboutin madrid mbt zapatos gafas ray ban baratas mbt ofertas air max blancas mbt barcelona nike air max 90 woolrich barcelona nike mujer botas ugg gafas de sol carrera aratas air max 2016 baratas oakley baratas nike air max 2016

mbt skor nike sverige louboutin skor hollister sverige polo ralph lauren skjorta woolrich jacka dam canada goose jacka woolrich jacka ray ban rea canada goose rea michael kors rea new balance skor ralph lauren skjorta new balance rea uggs sverige lacoste rea christian louboutin skor moncler jacka nike shox barbour jacka uggs rea