Spaces:
Sleeping
Sleeping
Download backend/libs/three/textures/FramebufferTexture.js from k-l-lambda/starry: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/textures/FramebufferTexture.js
- Command line
-
hf download hf://spaces/k-l-lambda/starry/backend/libs/three/textures/FramebufferTexture.js
-
curl -L -o FramebufferTexture.js https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/textures/FramebufferTexture.js
450 Bytes
| import { Texture } from './Texture.js'; | |
| import { NearestFilter } from '../constants.js'; | |
| class FramebufferTexture extends Texture { | |
| constructor(width, height, format) { | |
| super({ width, height }); | |
| this.format = format; | |
| this.magFilter = NearestFilter; | |
| this.minFilter = NearestFilter; | |
| this.generateMipmaps = false; | |
| this.needsUpdate = true; | |
| } | |
| } | |
| FramebufferTexture.prototype.isFramebufferTexture = true; | |
| export { FramebufferTexture }; | |