提交 2865470a 编写于 作者: D Don McCurdy

BasisTextureLoader: Fix example on iOS.

上级 b6879880
......@@ -167,7 +167,7 @@ THREE.BasisTextureLoader.prototype = {
}
texture.minFilter = THREE.LinearMipMapLinearFilter;
texture.minFilter = mipmaps.length === 1 ? THREE.LinearFilter : THREE.LinearMipMapLinearFilter;
texture.magFilter = THREE.LinearFilter;
texture.generateMipmaps = false;
texture.needsUpdate = true;
......@@ -449,6 +449,12 @@ THREE.BasisTextureLoader.BasisWorker = function () {
}
if ( basisFile.getHasAlpha() ) {
console.warn( 'THREE.BasisTextureLoader: Alpha not yet implemented.' );
}
var mipmaps = [];
for ( var mip = 0; mip < levels; mip ++ ) {
......
......@@ -51,7 +51,7 @@
loader.setTranscoderPath( 'js/libs/basis/' );
loader.detectSupport( renderer );
loader.load( 'textures/compressed/kodim20.basis', function ( texture ) {
loader.load( 'textures/compressed/PavingStones.basis', function ( texture ) {
texture.encoding = THREE.sRGBEncoding;
material.map = texture;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册