Download node_modules/three/src/scenes/Scene.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/scenes/Scene.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/scenes/Scene.js
-
curl -L -o Scene.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/scenes/Scene.js
1.43 kB
| import { Object3D } from '../core/Object3D.js'; | |
| class Scene extends Object3D { | |
| constructor() { | |
| super(); | |
| this.isScene = true; | |
| this.type = 'Scene'; | |
| this.background = null; | |
| this.environment = null; | |
| this.fog = null; | |
| this.backgroundBlurriness = 0; | |
| this.backgroundIntensity = 1; | |
| this.overrideMaterial = null; | |
| if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) { | |
| __THREE_DEVTOOLS__.dispatchEvent( new CustomEvent( 'observe', { detail: this } ) ); | |
| } | |
| } | |
| copy( source, recursive ) { | |
| super.copy( source, recursive ); | |
| if ( source.background !== null ) this.background = source.background.clone(); | |
| if ( source.environment !== null ) this.environment = source.environment.clone(); | |
| if ( source.fog !== null ) this.fog = source.fog.clone(); | |
| this.backgroundBlurriness = source.backgroundBlurriness; | |
| this.backgroundIntensity = source.backgroundIntensity; | |
| if ( source.overrideMaterial !== null ) this.overrideMaterial = source.overrideMaterial.clone(); | |
| this.matrixAutoUpdate = source.matrixAutoUpdate; | |
| return this; | |
| } | |
| toJSON( meta ) { | |
| const data = super.toJSON( meta ); | |
| if ( this.fog !== null ) data.object.fog = this.fog.toJSON(); | |
| if ( this.backgroundBlurriness > 0 ) data.object.backgroundBlurriness = this.backgroundBlurriness; | |
| if ( this.backgroundIntensity !== 1 ) data.object.backgroundIntensity = this.backgroundIntensity; | |
| return data; | |
| } | |
| } | |
| export { Scene }; | |