Spaces:
Sleeping
Sleeping
Download backend/libs/three/renderers/WebGLMultisampleRenderTarget.js from k-l-lambda/starry: direct link, hf CLI and curl.
- Browser
- Download file 826 Bytes
-
https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/renderers/WebGLMultisampleRenderTarget.js
- Command line
-
hf download hf://spaces/k-l-lambda/starry/backend/libs/three/renderers/WebGLMultisampleRenderTarget.js
-
curl -L -o WebGLMultisampleRenderTarget.js https://huggingface.co/spaces/k-l-lambda/starry/resolve/main/backend/libs/three/renderers/WebGLMultisampleRenderTarget.js
826 Bytes
| import { WebGLRenderTarget } from './WebGLRenderTarget.js'; | |
| class WebGLMultisampleRenderTarget extends WebGLRenderTarget { | |
| constructor(width, height, options = {}) { | |
| super(width, height, options); | |
| this.samples = 4; | |
| this.ignoreDepthForMultisampleCopy = options.ignoreDepth !== undefined ? options.ignoreDepth : true; | |
| this.useRenderToTexture = options.useRenderToTexture !== undefined ? options.useRenderToTexture : false; | |
| this.useRenderbuffer = this.useRenderToTexture === false; | |
| } | |
| copy(source) { | |
| super.copy.call(this, source); | |
| this.samples = source.samples; | |
| this.useRenderToTexture = source.useRenderToTexture; | |
| this.useRenderbuffer = source.useRenderbuffer; | |
| return this; | |
| } | |
| } | |
| WebGLMultisampleRenderTarget.prototype.isWebGLMultisampleRenderTarget = true; | |
| export { WebGLMultisampleRenderTarget }; | |