Download node_modules/three/src/materials/ShadowMaterial.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/materials/ShadowMaterial.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/materials/ShadowMaterial.js
-
curl -L -o ShadowMaterial.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/materials/ShadowMaterial.js
513 Bytes
| import { Material } from './Material.js'; | |
| import { Color } from '../math/Color.js'; | |
| class ShadowMaterial extends Material { | |
| constructor( parameters ) { | |
| super(); | |
| this.isShadowMaterial = true; | |
| this.type = 'ShadowMaterial'; | |
| this.color = new Color( 0x000000 ); | |
| this.transparent = true; | |
| this.fog = true; | |
| this.setValues( parameters ); | |
| } | |
| copy( source ) { | |
| super.copy( source ); | |
| this.color.copy( source.color ); | |
| this.fog = source.fog; | |
| return this; | |
| } | |
| } | |
| export { ShadowMaterial }; | |