Download node_modules/three/src/textures/CubeTexture.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 642 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/textures/CubeTexture.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/textures/CubeTexture.js
-
curl -L -o CubeTexture.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/textures/CubeTexture.js
642 Bytes
| import { Texture } from './Texture.js'; | |
| import { CubeReflectionMapping } from '../constants.js'; | |
| class CubeTexture extends Texture { | |
| constructor( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, colorSpace ) { | |
| images = images !== undefined ? images : []; | |
| mapping = mapping !== undefined ? mapping : CubeReflectionMapping; | |
| super( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, colorSpace ); | |
| this.isCubeTexture = true; | |
| this.flipY = false; | |
| } | |
| get images() { | |
| return this.image; | |
| } | |
| set images( value ) { | |
| this.image = value; | |
| } | |
| } | |
| export { CubeTexture }; | |