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