Procházet zdrojové kódy

Implement pre-mipmapping

Ben Adams před 12 roky
rodič
revize
c955abf235
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/textures/Texture.js

+ 2 - 0
src/textures/Texture.js

@@ -13,6 +13,7 @@ THREE.Texture = function ( image, mapping, wrapS, wrapT, magFilter, minFilter, f
 	this.name = '';
 
 	this.image = image;
+	this.mipmaps = null;
 
 	this.mapping = mapping !== undefined ? mapping : new THREE.UVMapping();
 
@@ -48,6 +49,7 @@ THREE.Texture.prototype = {
 		var texture = new THREE.Texture();
 
 		texture.image = this.image;
+		texture.mipmaps = this.mipmaps;
 
 		texture.mapping = this.mapping;