Download node_modules/three/src/lights/HemisphereLight.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 605 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/lights/HemisphereLight.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/lights/HemisphereLight.js
-
curl -L -o HemisphereLight.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/lights/HemisphereLight.js
605 Bytes
| import { Light } from './Light.js'; | |
| import { Color } from '../math/Color.js'; | |
| import { Object3D } from '../core/Object3D.js'; | |
| class HemisphereLight extends Light { | |
| constructor( skyColor, groundColor, intensity ) { | |
| super( skyColor, intensity ); | |
| this.isHemisphereLight = true; | |
| this.type = 'HemisphereLight'; | |
| this.position.copy( Object3D.DEFAULT_UP ); | |
| this.updateMatrix(); | |
| this.groundColor = new Color( groundColor ); | |
| } | |
| copy( source, recursive ) { | |
| super.copy( source, recursive ); | |
| this.groundColor.copy( source.groundColor ); | |
| return this; | |
| } | |
| } | |
| export { HemisphereLight }; | |