瀏覽代碼

Implement pre-mipmapping

Ben Adams 12 年之前
父節點
當前提交
c955abf235
共有 1 個文件被更改,包括 2 次插入0 次删除
  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;