提交 1e1845d8 编写于 作者: M Mr.doob

Merge pull request #5373 from tstanev/autodesk/dds_filter_type

Compressed textures with a single mip level have to use Linear min filte...
...@@ -41,12 +41,15 @@ THREE.CompressedTextureLoader.prototype = { ...@@ -41,12 +41,15 @@ THREE.CompressedTextureLoader.prototype = {
height: texDatas.height, height: texDatas.height,
format: texDatas.format, format: texDatas.format,
mipmaps: texDatas.mipmaps mipmaps: texDatas.mipmaps
} };
loaded += 1; loaded += 1;
if ( loaded === 6 ) { if ( loaded === 6 ) {
if (texDatas.mipmapCount == 1)
texture.minFilter = THREE.LinearFilter;
texture.format = texDatas.format; texture.format = texDatas.format;
texture.needsUpdate = true; texture.needsUpdate = true;
...@@ -56,7 +59,7 @@ THREE.CompressedTextureLoader.prototype = { ...@@ -56,7 +59,7 @@ THREE.CompressedTextureLoader.prototype = {
} ); } );
} };
for ( var i = 0, il = url.length; i < il; ++ i ) { for ( var i = 0, il = url.length; i < il; ++ i ) {
...@@ -99,6 +102,9 @@ THREE.CompressedTextureLoader.prototype = { ...@@ -99,6 +102,9 @@ THREE.CompressedTextureLoader.prototype = {
} }
if (texDatas.mipmapCount == 1)
texture.minFilter = THREE.LinearFilter;
texture.format = texDatas.format; texture.format = texDatas.format;
texture.needsUpdate = true; texture.needsUpdate = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册