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