@woosh/meep-engine 2.36.27 → 2.36.28

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.
@@ -82,8 +82,6 @@ function makeIdMaterialStatic() {
82
82
  });
83
83
  }
84
84
 
85
- const material_id_unskinned = makeIdMaterialStatic();
86
-
87
85
  /**
88
86
  *
89
87
  * @type {WeakMap<Object3D, Object3D>}
@@ -185,13 +183,6 @@ export class OutlineRenderer {
185
183
  */
186
184
  this.scene = null;
187
185
 
188
- /**
189
- *
190
- * @type {HighlightRenderGroup}
191
- * @private
192
- */
193
- this.__current_group = null;
194
-
195
186
  /**
196
187
  *
197
188
  * @type {HashMap<HighlightDefinition>}
@@ -585,10 +576,10 @@ export class OutlineRenderer {
585
576
 
586
577
  const color = definition.color;
587
578
 
588
- data[offset + 0] = color.r * 255;
589
- data[offset + 1] = color.g * 255;
590
- data[offset + 2] = color.b * 255;
591
- data[offset + 3] = definition.opacity * 255;
579
+ data[offset + 0] = Math.round(color.r * 255);
580
+ data[offset + 1] = Math.round(color.g * 255);
581
+ data[offset + 2] = Math.round(color.b * 255);
582
+ data[offset + 3] = Math.round(definition.opacity * 255);
592
583
 
593
584
  texture.needsUpdate = true;
594
585
  }
@@ -183,11 +183,10 @@ class LightSystem extends AbstractContextSystem {
183
183
  /**
184
184
  *
185
185
  * @param {Light} light
186
- * @param {Transform} transform
187
186
  * @param {number} lightEntity
188
187
  * @private
189
188
  */
190
- __visit_entity_to_update_shadow(light, transform, lightEntity) {
189
+ __visit_entity_to_update_shadow(light, lightEntity) {
191
190
  /**
192
191
  *
193
192
  1) Calculate the 8 corners of the view frustum in world space. This can be done by using the inverse view-projection matrix to transform the 8 corners of the NDC cube (which in OpenGL is [‒1, 1] along each axis).
@@ -250,7 +249,7 @@ class LightSystem extends AbstractContextSystem {
250
249
  return false;
251
250
  }
252
251
 
253
- dataset.traverseEntities([Light, Transform], this.__visit_entity_to_update_shadow, this);
252
+ dataset.traverseComponents(Light, this.__visit_entity_to_update_shadow, this);
254
253
 
255
254
  //stop further traversal
256
255
  return false;
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.36.27",
8
+ "version": "2.36.28",
9
9
  "dependencies": {
10
10
  "gl-matrix": "3.4.3",
11
11
  "fast-levenshtein": "2.0.6",