Spaces:
Sleeping
Sleeping
Download backend/libs/three/textures/CubeTexture.js from k-l-lambda/starry: direct link, hf CLI and curl.
- Browser
- Download file 639 Bytes
-
https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/textures/CubeTexture.js
- Command line
-
hf download hf://spaces/k-l-lambda/starry/backend/libs/three/textures/CubeTexture.js
-
curl -L -o CubeTexture.js https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/textures/CubeTexture.js
639 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, encoding) { | |
| images = images !== undefined ? images : []; | |
| mapping = mapping !== undefined ? mapping : CubeReflectionMapping; | |
| super(images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding); | |
| this.flipY = false; | |
| } | |
| get images() { | |
| return this.image; | |
| } | |
| set images(value) { | |
| this.image = value; | |
| } | |
| } | |
| CubeTexture.prototype.isCubeTexture = true; | |
| export { CubeTexture }; | |