Download node_modules/three/src/scenes/Fog.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/scenes/Fog.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/scenes/Fog.js
-
curl -L -o Fog.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/scenes/Fog.js
462 Bytes
| import { Color } from '../math/Color.js'; | |
| class Fog { | |
| constructor( color, near = 1, far = 1000 ) { | |
| this.isFog = true; | |
| this.name = ''; | |
| this.color = new Color( color ); | |
| this.near = near; | |
| this.far = far; | |
| } | |
| clone() { | |
| return new Fog( this.color, this.near, this.far ); | |
| } | |
| toJSON( /* meta */ ) { | |
| return { | |
| type: 'Fog', | |
| name: this.name, | |
| color: this.color.getHex(), | |
| near: this.near, | |
| far: this.far | |
| }; | |
| } | |
| } | |
| export { Fog }; | |