1 /**
2 * @author szimek / https://github.com/szimek/
3 * @author alteredq / http://alteredqualia.com/
4 */
5
6 /**@constructor*/
7 THREE.WebGLRenderTarget = function ( width, height, options ) {
8
9 this.width = width;
10 this.height = height;
11
12 options = options || {};
13
14 this.wrapS = options.wrapS !== undefined ? options.wrapS : THREE.ClampToEdgeWrapping;
15 this.wrapT = options.wrapT !== undefined ? options.wrapT : THREE.ClampToEdgeWrapping;
16
17 this.magFilter = options.magFilter !== undefined ? options.magFilter : THREE.LinearFilter;
18 this.minFilter = options.minFilter !== undefined ? options.minFilter : THREE.LinearMipMapLinearFilter;
19
20 this.anisotropy = options.anisotropy !== undefined ? options.anisotropy : 1;
21
22 this.offset = new THREE.Vector2( 0, 0 );
23 this.repeat = new THREE.Vector2( 1, 1 );
24
25 this.format = options.format !== undefined ? options.format : THREE.RGBAFormat;
26 this.type = options.type !== undefined ? options.type : THREE.UnsignedByteType;
27
28 this.depthBuffer = options.depthBuffer !== undefined ? options.depthBuffer : true;
29 this.stencilBuffer = options.stencilBuffer !== undefined ? options.stencilBuffer : true;
30
31 this.generateMipmaps = true;
32
33 };
34
35 THREE.WebGLRenderTarget.prototype.clone = function() {
36
37 var tmp = new THREE.WebGLRenderTarget( this.width, this.height );
38
39 tmp.wrapS = this.wrapS;
40 tmp.wrapT = this.wrapT;
41
42 tmp.magFilter = this.magFilter;
43 tmp.anisotropy = this.anisotropy;
44
45 tmp.minFilter = this.minFilter;
46
47 tmp.offset.copy( this.offset );
48 tmp.repeat.copy( this.repeat );
49
50 tmp.format = this.format;
51 tmp.type = this.type;
52
53 tmp.depthBuffer = this.depthBuffer;
54 tmp.stencilBuffer = this.stencilBuffer;
55
56 tmp.generateMipmaps = this.generateMipmaps;
57
58 return tmp;
59
60 };
61
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