@woosh/meep-engine 2.119.54 → 2.119.55
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,7 +1,7 @@
|
|
|
1
1
|
import {System} from "../../../../ecs/System";
|
|
2
|
+
import Engine from "../../../../Engine";
|
|
2
3
|
import {ShadedGeometry} from "../../mesh-v2/ShadedGeometry.js";
|
|
3
4
|
import Highlight from "../Highlight";
|
|
4
|
-
import Engine from "../../../../Engine";
|
|
5
5
|
|
|
6
6
|
export class ShadedGeometryHighlightSystem extends System<Highlight, ShadedGeometry> {
|
|
7
7
|
constructor(engine: Engine)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreeLightBinding.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/ecs/light/binding/three/ThreeLightBinding.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ThreeLightBinding.d.ts","sourceRoot":"","sources":["../../../../../../../../src/engine/graphics/ecs/light/binding/three/ThreeLightBinding.js"],"names":[],"mappings":"AA4FA;;;;GAIG;AACH,6EAFW,MAAM,QAgBhB;AAED;IAGI;;;;OAIG;IACH,iBAAgB;IAEhB;;;;OAIG;IACH,qBAAoB;IAEpB;;;;OAIG;IACH,qBAA6B;IAG7B,qBAYC;IAED,uBAcC;IAED;;;;OAIG;IACH,yBAEC;IAYD,+BAEC;IAUD,yBAuBC;IAED,2BAgBC;IAED,iCA0BC;IAGD,2BA0CC;IA8CD,mCAmBC;CAEJ;6BArX4B,oBAAoB"}
|
|
@@ -33,7 +33,26 @@ function __getDepthMaterial(object) {
|
|
|
33
33
|
if (customDepthMaterial !== undefined) {
|
|
34
34
|
result = customDepthMaterial;
|
|
35
35
|
} else {
|
|
36
|
-
|
|
36
|
+
|
|
37
|
+
const source_material = object.material;
|
|
38
|
+
if (
|
|
39
|
+
typeof source_material.alphaTest === "number"
|
|
40
|
+
&& source_material.alphaTest > 0
|
|
41
|
+
&& source_material.alphaTest < 1
|
|
42
|
+
&& source_material.map !== null
|
|
43
|
+
&& source_material.map !== undefined
|
|
44
|
+
) {
|
|
45
|
+
// alpha-tested
|
|
46
|
+
result = new MeshDepthMaterial({
|
|
47
|
+
depthPacking: RGBADepthPacking,
|
|
48
|
+
side: DoubleSide,
|
|
49
|
+
alphaMap: source_material.map
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
} else {
|
|
53
|
+
// generic
|
|
54
|
+
result = __depth_material;
|
|
55
|
+
}
|
|
37
56
|
}
|
|
38
57
|
|
|
39
58
|
return result;
|
|
@@ -95,26 +114,26 @@ export function three_set_shadow_resolution(shadow, resolution) {
|
|
|
95
114
|
export class ThreeLightBinding extends LightBinding {
|
|
96
115
|
|
|
97
116
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {LightSystem|null}
|
|
120
|
+
* @private
|
|
121
|
+
*/
|
|
122
|
+
__system = null;
|
|
104
123
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {ShadowMap|null}
|
|
127
|
+
* @private
|
|
128
|
+
*/
|
|
129
|
+
__shadow_map = null;
|
|
111
130
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {WeakMap<THREE.Object3D, THREE.Object3D>}
|
|
134
|
+
* @private
|
|
135
|
+
*/
|
|
136
|
+
__object_map = new WeakMap();
|
|
118
137
|
|
|
119
138
|
|
|
120
139
|
link(ctx) {
|