|
|
@@ -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, EquirectangularReflectionMapping, EquirectangularRefractionMapping, CubeReflectionMapping, CubeRefractionMapping, UnsignedByteType } from '../../constants.js';
|
|
|
+import { DepthStencilFormat, DepthFormat, UnsignedIntType, UnsignedInt248Type, UnsignedByteType } from '../../constants.js';
|
|
|
|
|
|
const _size = /*@__PURE__*/ new Vector3();
|
|
|
|
|
|
@@ -421,21 +421,7 @@ class Textures extends DataMap {
|
|
|
*/
|
|
|
needsMipmaps( texture ) {
|
|
|
|
|
|
- return this.isEnvironmentTexture( texture ) || texture.isCompressedTexture === true || texture.generateMipmaps;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * Returns `true` if the given texture is an environment map.
|
|
|
- *
|
|
|
- * @param {Texture} texture - The texture.
|
|
|
- * @return {boolean} Whether the given texture is an environment map or not.
|
|
|
- */
|
|
|
- isEnvironmentTexture( texture ) {
|
|
|
-
|
|
|
- const mapping = texture.mapping;
|
|
|
-
|
|
|
- return ( mapping === EquirectangularReflectionMapping || mapping === EquirectangularRefractionMapping ) || ( mapping === CubeReflectionMapping || mapping === CubeRefractionMapping );
|
|
|
+ return texture.isCompressedTexture === true || texture.generateMipmaps;
|
|
|
|
|
|
}
|
|
|
|