Last change
on this file since 28897 was 28897, checked in by davidb, 10 years ago |
GUI front-end to server base plus web page content
|
File size:
770 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * @author alteredq / http://alteredqualia.com/
|
---|
3 | */
|
---|
4 |
|
---|
5 | THREE.CompressedTexture = function ( mipmaps, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy ) {
|
---|
6 |
|
---|
7 | THREE.Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
|
---|
8 |
|
---|
9 | this.image = { width: width, height: height };
|
---|
10 | this.mipmaps = mipmaps;
|
---|
11 |
|
---|
12 | this.generateMipmaps = false; // WebGL currently can't generate mipmaps for compressed textures, they must be embedded in DDS file
|
---|
13 |
|
---|
14 | };
|
---|
15 |
|
---|
16 | THREE.CompressedTexture.prototype = Object.create( THREE.Texture.prototype );
|
---|
17 |
|
---|
18 | THREE.CompressedTexture.prototype.clone = function () {
|
---|
19 |
|
---|
20 | var texture = new THREE.CompressedTexture();
|
---|
21 |
|
---|
22 | THREE.Texture.prototype.clone.call( this, texture );
|
---|
23 |
|
---|
24 | return texture;
|
---|
25 |
|
---|
26 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.