Spaces:
Sleeping
Sleeping
Download backend/libs/three/core/GLBufferAttribute.js from k-l-lambda/starry: direct link, hf CLI and curl.
- Browser
- Download file 698 Bytes
-
https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/core/GLBufferAttribute.js
- Command line
-
hf download hf://spaces/k-l-lambda/starry/backend/libs/three/core/GLBufferAttribute.js
-
curl -L -o GLBufferAttribute.js https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/core/GLBufferAttribute.js
698 Bytes
| class GLBufferAttribute { | |
| constructor(buffer, type, itemSize, elementSize, count) { | |
| this.buffer = buffer; | |
| this.type = type; | |
| this.itemSize = itemSize; | |
| this.elementSize = elementSize; | |
| this.count = count; | |
| this.version = 0; | |
| } | |
| set needsUpdate(value) { | |
| if (value === true) this.version++; | |
| } | |
| setBuffer(buffer) { | |
| this.buffer = buffer; | |
| return this; | |
| } | |
| setType(type, elementSize) { | |
| this.type = type; | |
| this.elementSize = elementSize; | |
| return this; | |
| } | |
| setItemSize(itemSize) { | |
| this.itemSize = itemSize; | |
| return this; | |
| } | |
| setCount(count) { | |
| this.count = count; | |
| return this; | |
| } | |
| } | |
| GLBufferAttribute.prototype.isGLBufferAttribute = true; | |
| export { GLBufferAttribute }; | |