@woosh/meep-engine 2.34.42 → 2.34.43
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.
|
@@ -58,7 +58,7 @@ function scene_object_filter(object3D) {
|
|
|
58
58
|
/**
|
|
59
59
|
* @type {THREE.Material|null|undefined}
|
|
60
60
|
*/
|
|
61
|
-
const material = (object3D.customDepthMaterial
|
|
61
|
+
const material = (object3D.customDepthMaterial ? object3D.customDepthMaterial : object3D.material);
|
|
62
62
|
|
|
63
63
|
if (material && material.visible === false) {
|
|
64
64
|
//material's main
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EngineHarness } from "../../../../EngineHarness.js";
|
|
2
|
-
import { ShadedGeometrySystem } from "../ShadedGeometrySystem.
|
|
3
|
-
import EntityBuilder from "../../../../ecs/EntityBuilder.
|
|
4
|
-
import { Transform } from "../../../../ecs/transform/Transform.
|
|
5
|
-
import { ShadedGeometry } from "../ShadedGeometry.
|
|
2
|
+
import { ShadedGeometrySystem } from "../ShadedGeometrySystem.js";
|
|
3
|
+
import EntityBuilder from "../../../../ecs/EntityBuilder.js";
|
|
4
|
+
import { Transform } from "../../../../ecs/transform/Transform.js";
|
|
5
|
+
import { ShadedGeometry } from "../ShadedGeometry.js";
|
|
6
6
|
import { BoxBufferGeometry, MeshBasicMaterial } from "three";
|
|
7
7
|
|
|
8
8
|
const eh = new EngineHarness();
|
|
@@ -22,11 +22,24 @@ async function main(engine) {
|
|
|
22
22
|
|
|
23
23
|
const ecd = em.dataset;
|
|
24
24
|
|
|
25
|
+
const material = new MeshBasicMaterial({
|
|
26
|
+
color: 0xFFFFFF
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
material.visible = true;
|
|
30
|
+
|
|
31
|
+
const g = ShadedGeometry.from(new BoxBufferGeometry(), material);
|
|
32
|
+
|
|
33
|
+
|
|
25
34
|
new EntityBuilder()
|
|
26
|
-
.add(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
.add(Transform.fromJSON({
|
|
36
|
+
position: {
|
|
37
|
+
x: 10,
|
|
38
|
+
y: 1,
|
|
39
|
+
z: 10
|
|
40
|
+
}
|
|
41
|
+
}))
|
|
42
|
+
.add(g)
|
|
30
43
|
.build(ecd);
|
|
31
44
|
}
|
|
32
45
|
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"productName": "Meep",
|
|
6
6
|
"description": "production-ready JavaScript game engine based on Entity Component System Architecture",
|
|
7
7
|
"author": "Alexander Goldring",
|
|
8
|
-
"version": "2.34.
|
|
8
|
+
"version": "2.34.43",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"gl-matrix": "3.4.3",
|
|
11
11
|
"fast-levenshtein": "2.0.6",
|