Buckets:
ktongue/docker_container / simsite /frontend /node_modules /three /src /materials /SpriteMaterial.js
| 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 }; | |
Xet Storage Details
- Size:
- 761 Bytes
- Xet hash:
- 507bad16ae2273e65ba308aabc7fa07a8784542523f56268725e0c7b168b8e70
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.