|
|
@@ -2,7 +2,7 @@ import DataMap from './DataMap.js';
|
|
|
|
|
|
import { Vector3 } from '../../math/Vector3.js';
|
|
|
import { DepthTexture } from '../../textures/DepthTexture.js';
|
|
|
-import { DepthStencilFormat, DepthFormat, UnsignedIntType, UnsignedInt248Type, LinearFilter, NearestFilter, EquirectangularReflectionMapping, EquirectangularRefractionMapping, CubeReflectionMapping, CubeRefractionMapping, UnsignedByteType } from '../../constants.js';
|
|
|
+import { DepthStencilFormat, DepthFormat, UnsignedIntType, UnsignedInt248Type, EquirectangularReflectionMapping, EquirectangularRefractionMapping, CubeReflectionMapping, CubeRefractionMapping, UnsignedByteType } from '../../constants.js';
|
|
|
|
|
|
const _size = /*@__PURE__*/ new Vector3();
|
|
|
|
|
|
@@ -335,9 +335,7 @@ class Textures extends DataMap {
|
|
|
|
|
|
needsMipmaps( texture ) {
|
|
|
|
|
|
- if ( this.isEnvironmentTexture( texture ) ) return true;
|
|
|
-
|
|
|
- return ( texture.isCompressedTexture === true ) || ( ( texture.minFilter !== NearestFilter ) && ( texture.minFilter !== LinearFilter ) );
|
|
|
+ return this.isEnvironmentTexture( texture ) || texture.isCompressedTexture === true || texture.generateMipmaps;
|
|
|
|
|
|
}
|
|
|
|