Spaces:
Sleeping
Sleeping
Download backend/libs/three/textures/DataTexture.js from k-l-lambda/starry: direct link, hf CLI and curl.
- Browser
- Download file 694 Bytes
-
https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/textures/DataTexture.js
- Command line
-
hf download hf://spaces/k-l-lambda/starry/backend/libs/three/textures/DataTexture.js
-
curl -L -o DataTexture.js https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/textures/DataTexture.js
694 Bytes
| import { Texture } from './Texture.js'; | |
| import { NearestFilter } from '../constants.js'; | |
| class DataTexture extends Texture { | |
| constructor( | |
| data = null, | |
| width = 1, | |
| height = 1, | |
| format, | |
| type, | |
| mapping, | |
| wrapS, | |
| wrapT, | |
| magFilter = NearestFilter, | |
| minFilter = NearestFilter, | |
| anisotropy, | |
| encoding | |
| ) { | |
| super(null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding); | |
| this.image = { data: data, width: width, height: height }; | |
| this.magFilter = magFilter; | |
| this.minFilter = minFilter; | |
| this.generateMipmaps = false; | |
| this.flipY = false; | |
| this.unpackAlignment = 1; | |
| } | |
| } | |
| DataTexture.prototype.isDataTexture = true; | |
| export { DataTexture }; | |