Download node_modules/three/src/materials/MeshDistanceMaterial.js from SimWorld-AI/industrial-harbor-viewer: direct link, hf CLI and curl.
- Browser
- Download file 699 Bytes
-
https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/materials/MeshDistanceMaterial.js
- Command line
-
hf download hf://spaces/SimWorld-AI/industrial-harbor-viewer/node_modules/three/src/materials/MeshDistanceMaterial.js
-
curl -L -o MeshDistanceMaterial.js https://huggingface.co/spaces/SimWorld-AI/industrial-harbor-viewer/resolve/main/node_modules/three/src/materials/MeshDistanceMaterial.js
699 Bytes
| import { Material } from './Material.js'; | |
| class MeshDistanceMaterial extends Material { | |
| constructor( parameters ) { | |
| super(); | |
| this.isMeshDistanceMaterial = true; | |
| this.type = 'MeshDistanceMaterial'; | |
| this.map = null; | |
| this.alphaMap = null; | |
| this.displacementMap = null; | |
| this.displacementScale = 1; | |
| this.displacementBias = 0; | |
| this.setValues( parameters ); | |
| } | |
| copy( source ) { | |
| super.copy( source ); | |
| this.map = source.map; | |
| this.alphaMap = source.alphaMap; | |
| this.displacementMap = source.displacementMap; | |
| this.displacementScale = source.displacementScale; | |
| this.displacementBias = source.displacementBias; | |
| return this; | |
| } | |
| } | |
| export { MeshDistanceMaterial }; | |