Download node_modules/three/src/renderers/WebGL3DRenderTarget.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/renderers/WebGL3DRenderTarget.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/renderers/WebGL3DRenderTarget.js
-
curl -L -o WebGL3DRenderTarget.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/renderers/WebGL3DRenderTarget.js
493 Bytes
| import { WebGLRenderTarget } from './WebGLRenderTarget.js'; | |
| import { Data3DTexture } from '../textures/Data3DTexture.js'; | |
| class WebGL3DRenderTarget extends WebGLRenderTarget { | |
| constructor( width = 1, height = 1, depth = 1, options = {} ) { | |
| super( width, height, options ); | |
| this.isWebGL3DRenderTarget = true; | |
| this.depth = depth; | |
| this.texture = new Data3DTexture( null, width, height, depth ); | |
| this.texture.isRenderTargetTexture = true; | |
| } | |
| } | |
| export { WebGL3DRenderTarget }; | |