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