Download node_modules/three/src/textures/CompressedTexture.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/textures/CompressedTexture.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/textures/CompressedTexture.js
-
curl -L -o CompressedTexture.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/textures/CompressedTexture.js
703 Bytes
| import { Texture } from './Texture.js'; | |
| class CompressedTexture extends Texture { | |
| constructor( mipmaps, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy, colorSpace ) { | |
| super( null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, colorSpace ); | |
| this.isCompressedTexture = true; | |
| this.image = { width: width, height: height }; | |
| this.mipmaps = mipmaps; | |
| // no flipping for cube textures | |
| // (also flipping doesn't work for compressed textures ) | |
| this.flipY = false; | |
| // can't generate mipmaps for compressed textures | |
| // mips must be embedded in DDS files | |
| this.generateMipmaps = false; | |
| } | |
| } | |
| export { CompressedTexture }; | |