@woosh/meep-engine 2.119.55 → 2.119.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {THREE.Object3D} root
|
|
4
|
+
* @returns {EntityNode}
|
|
5
|
+
*/
|
|
6
|
+
export function three_object_to_entity_composition(root: THREE.Object3D): EntityNode;
|
|
7
|
+
import { EntityNode } from "../../../ecs/parent/EntityNode.js";
|
|
8
|
+
//# sourceMappingURL=three_object_to_entity_composition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"three_object_to_entity_composition.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/ecs/mesh-v2/three_object_to_entity_composition.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,yDAHW,MAAM,QAAQ,GACZ,UAAU,
|
|
1
|
+
{"version":3,"file":"three_object_to_entity_composition.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/ecs/mesh-v2/three_object_to_entity_composition.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,yDAHW,MAAM,QAAQ,GACZ,UAAU,CA6CtB;2BArD0B,mCAAmC"}
|
|
@@ -33,6 +33,10 @@ export function three_object_to_entity_composition(root) {
|
|
|
33
33
|
|
|
34
34
|
const sg = ShadedGeometry.from(root.geometry, root.material);
|
|
35
35
|
|
|
36
|
+
if(root.customDepthMaterial !== undefined && root.customDepthMaterial !== null) {
|
|
37
|
+
sg.depth_material = root.customDepthMaterial;
|
|
38
|
+
}
|
|
39
|
+
|
|
36
40
|
entity.add(sg);
|
|
37
41
|
}
|
|
38
42
|
|