@woosh/meep-engine 2.117.28 → 2.117.30

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.28",
8
+ "version": "2.117.30",
9
9
  "main": "build/meep.module.js",
10
10
  "module": "build/meep.module.js",
11
11
  "exports": {
@@ -8,6 +8,11 @@ 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
 
13
18
  parse(text: string): void
@@ -49,4 +54,22 @@ export class Color {
49
54
  fromArray(source: ArrayLike<number>, destination_offset?: number): void
50
55
 
51
56
  toArray<T extends ArrayLike<number>>(destination?: T, destination_offset?: number): T
57
+
58
+ //
59
+
60
+ static parse(value: string): Color
61
+
62
+ static fromHSV(h: number, s: number, v: number): Color
63
+
64
+ static fromRGB(r: number, g: number, b: number): Color
65
+
66
+ static readonly red: Color
67
+ static readonly green: Color
68
+ static readonly blue: Color
69
+ static readonly yellow: Color
70
+ static readonly cyan: Color
71
+ static readonly magenta: Color
72
+ static readonly white: Color
73
+ static readonly black: Color
74
+ static readonly transparent: Color
52
75
  }
@@ -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';