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