@woosh/meep-engine 2.47.29 → 2.47.31
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/build/meep.cjs +18 -4
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +18 -4
- package/package.json +1 -1
- package/src/engine/graphics/ecs/decal/v2/Decal.d.ts +1 -1
- package/src/engine/graphics/ecs/decal/v2/FPDecalSystem.js +30 -14
- package/src/engine/graphics/render/forward_plus/LightManager.js +18 -4
- package/src/engine/intelligence/behavior/decorator/InvertStatusBehavior.js +42 -0
- package/src/engine/intelligence/behavior/decorator/InvertStatusBehaviorSerializationAdapter.js +33 -0
- package/src/engine/intelligence/behavior/decorator/RepeatUntilFailureBehavior.js +6 -9
- package/src/engine/intelligence/behavior/decorator/InverterBehavior.js +0 -75
package/build/meep.cjs
CHANGED
|
@@ -120383,7 +120383,8 @@ class LightManager {
|
|
|
120383
120383
|
this.__visible_decals.onRemoved.add(this.__handle_visible_decal_removed, this);
|
|
120384
120384
|
|
|
120385
120385
|
/**
|
|
120386
|
-
*
|
|
120386
|
+
* Data needs to be re-written into the data texture
|
|
120387
|
+
* Usually set when source lights change
|
|
120387
120388
|
* @type {boolean}
|
|
120388
120389
|
* @private
|
|
120389
120390
|
*/
|
|
@@ -120399,6 +120400,10 @@ class LightManager {
|
|
|
120399
120400
|
// window.light_manager = this; // DEBUG
|
|
120400
120401
|
}
|
|
120401
120402
|
|
|
120403
|
+
requestDataUpdate() {
|
|
120404
|
+
this.__light_data_needs_update = true;
|
|
120405
|
+
}
|
|
120406
|
+
|
|
120402
120407
|
/**
|
|
120403
120408
|
* Please set this to false if you have a lot of overlapping decals in the scene
|
|
120404
120409
|
* Overlapping decals can provide filtering artifacts due to incorrect mipmap level detection by WebGL
|
|
@@ -121189,17 +121194,17 @@ class LightManager {
|
|
|
121189
121194
|
assert.isNumber(x, 'x');
|
|
121190
121195
|
assert.isNonNegativeInteger(x, 'x');
|
|
121191
121196
|
assert.isFiniteNumber(x, 'x');
|
|
121192
|
-
assert.greaterThan(x,0,'x must be > 0');
|
|
121197
|
+
assert.greaterThan(x, 0, 'x must be > 0');
|
|
121193
121198
|
|
|
121194
121199
|
assert.isNumber(y, 'y');
|
|
121195
121200
|
assert.isNonNegativeInteger(y, 'y');
|
|
121196
121201
|
assert.isFiniteNumber(y, 'y');
|
|
121197
|
-
assert.greaterThan(y,0,'y must be > 0');
|
|
121202
|
+
assert.greaterThan(y, 0, 'y must be > 0');
|
|
121198
121203
|
|
|
121199
121204
|
assert.isNumber(z, 'z');
|
|
121200
121205
|
assert.isNonNegativeInteger(z, 'z');
|
|
121201
121206
|
assert.isFiniteNumber(z, 'z');
|
|
121202
|
-
assert.greaterThan(z,0,'z must be > 0');
|
|
121207
|
+
assert.greaterThan(z, 0, 'z must be > 0');
|
|
121203
121208
|
|
|
121204
121209
|
const r = this.__tiles_resolution;
|
|
121205
121210
|
|
|
@@ -121228,6 +121233,15 @@ class LightManager {
|
|
|
121228
121233
|
);
|
|
121229
121234
|
}
|
|
121230
121235
|
|
|
121236
|
+
/**
|
|
121237
|
+
*
|
|
121238
|
+
* @param {AbstractLight} light
|
|
121239
|
+
* @returns {boolean}
|
|
121240
|
+
*/
|
|
121241
|
+
hasLight(light) {
|
|
121242
|
+
return this.#metadata_map.has(light.id);
|
|
121243
|
+
}
|
|
121244
|
+
|
|
121231
121245
|
/**
|
|
121232
121246
|
*
|
|
121233
121247
|
* @param {AbstractLight} light
|