Explorar o código

Implement pre-mipmapping

Ben Adams %!s(int64=12) %!d(string=hai) anos
pai
achega
c955abf235
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;