@woosh/meep-engine 2.117.27 → 2.117.29

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
@@ -5,7 +5,7 @@
5
5
  "description": "Fully featured ECS game engine written in JavaScript",
6
6
  "type": "module",
7
7
  "author": "Alexander Goldring",
8
- "version": "2.117.27",
8
+ "version": "2.117.29",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -29,9 +29,9 @@ export function ebvh_nodes_sort_sah_local4(bvh, nodes, offset, count) {
29
29
  const cost1 = bvh.node_get_combined_surface_area(a, c) + bvh.node_get_combined_surface_area(b, d);
30
30
  const cost2 = bvh.node_get_combined_surface_area(a, d) + bvh.node_get_combined_surface_area(c, b);
31
31
 
32
- if (cost0 < cost1 && cost0 < cost2) {
32
+ if (cost0 <= cost1 && cost0 <= cost2) {
33
33
  // no change
34
- } else if (cost1 < cost2) {
34
+ } else if (cost1 <= cost2) {
35
35
  // swap C and B
36
36
  nodes[i + 1] = c;
37
37
  nodes[i + 2] = b;
@@ -8,8 +8,19 @@ export class Color {
8
8
  b: number
9
9
  a: number
10
10
 
11
+ 0: number
12
+ 1: number
13
+ 2: number
14
+ 3: number
15
+
11
16
  readonly onChanged: Signal<number, number, number, number, number, number>
12
17
 
18
+ static parse(value: string): Color
19
+
20
+ static fromHSV(h: number, s: number, v: number): Color
21
+
22
+ static fromRGB(r: number, g: number, b: number): Color
23
+
13
24
  parse(text: string): void
14
25
 
15
26
  set(r: number, g: number, b: number, a: number): void;
@@ -452,7 +452,7 @@ vec4 lvp_mask_weights_by_visibility(in vec3 position, in vec3 normal, in vec3 vi
452
452
  // The small offset at the end reduces the "going to zero" impact
453
453
  // where this is really close to exactly opposite
454
454
  // float backface_term = max(0.0001, (dot(direction_to_probe, normal) + 1.0) * 0.5);
455
- weight *= backface_term * backface_term + 0.05;
455
+ // weight *= backface_term * backface_term + 0.05;
456
456
  // weight *= backface_term;
457
457
 
458
458
  }
@@ -460,7 +460,7 @@ vec4 lvp_mask_weights_by_visibility(in vec3 position, in vec3 normal, in vec3 vi
460
460
  // Moment visibility test (depth)
461
461
  {
462
462
 
463
- weight *= lpv_probe_getVisibilityMask(lookup_position, probe_index);
463
+ // weight *= lpv_probe_getVisibilityMask(lookup_position, probe_index);
464
464
 
465
465
  }
466
466
 
@@ -354,8 +354,8 @@ async function main(engine) {
354
354
  sun: sun_color,
355
355
  // sunIntensity: 1.7,
356
356
  sunIntensity: 3,
357
- sunDirection: new Vector3(0.2, -0.8, 1)
358
- // sunDirection: new Vector3(1.2, -1, 0.2)
357
+ // sunDirection: new Vector3(0.2, -0.8, 1)
358
+ sunDirection: new Vector3(1.2, -1, 0.2)
359
359
  })
360
360
 
361
361
  engine.graphics.getRenderer().setClearColor('#1e3441', 1);
@@ -382,12 +382,12 @@ async function main(engine) {
382
382
  // const path = 'data/models/samples/cyberpunk_bike/scene.gltf';
383
383
  // const path = 'data/models/LowPolyTownshipSet/Town_Hall/model.gltf';
384
384
  // const path = 'data/models/sibenik/3-window-less/model.gltf';
385
- const path = 'data/models/sponza-pbr/gltf/sponza.glb';
385
+ // const path = 'data/models/sponza-pbr/gltf/sponza.glb';
386
386
  // const path = 'data/models/samples/susanne.glb';
387
387
  // const path = 'data/models/samples/teapot.gltf';
388
388
  // const path = 'data/models/samples/salle_de_bain/model.glb';
389
389
  // const path = 'data/models/samples/conference/model-no-curtains.glb';
390
- // const path = 'data/models/pica_pica/pica_pica.gltf';
390
+ const path = 'data/models/pica_pica/pica_pica.gltf';
391
391
  // const path = 'data/models/samples/gi_box_01/model.glb';
392
392
  // const path = 'data/models/samples/low_poly_classroom/no-glass/model.gltf';
393
393
  // const path = 'customer_data/halon_scene.glb';