@woosh/meep-engine 2.64.0 → 2.65.0
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 +5345 -5345
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +5345 -5345
- package/package.json +1 -1
- package/src/core/bvh2/BinaryNode.js +14 -14
- package/src/core/bvh2/LeafNode.js +4 -4
- package/src/core/bvh2/bvh3/{ExplicitBinaryBoundingVolumeHierarchy.d.ts → BVH.d.ts} +1 -1
- package/src/core/bvh2/bvh3/{ExplicitBinaryBoundingVolumeHierarchy.js → BVH.js} +2 -2
- package/src/core/bvh2/bvh3/{ExplicitBinaryBoundingVolumeHierarchy.spec.js → BVH.spec.js} +20 -20
- package/src/core/bvh2/bvh3/{EBBVHLeafProxy.js → BvhClient.js} +3 -3
- package/src/core/bvh2/bvh3/BvhClient.spec.js +51 -0
- package/src/core/bvh2/bvh3/ebvh_build_for_geometry_incremental.js +2 -2
- package/src/core/bvh2/bvh3/ebvh_build_for_geometry_morton.js +4 -4
- package/src/core/bvh2/bvh3/ebvh_build_for_geometry_morton.spec.js +3 -3
- package/src/core/bvh2/bvh3/ebvh_sort_for_traversal_depth_first.js +2 -8
- package/src/core/bvh2/bvh3/query/BVHQuery.js +1 -1
- package/src/core/bvh2/bvh3/query/bvh_collect_user_data.js +2 -2
- package/src/core/bvh2/bvh3/query/bvh_query_leaves_generic.js +2 -2
- package/src/core/bvh2/bvh3/query/bvh_query_leaves_generic.spec.js +2 -2
- package/src/core/bvh2/bvh3/query/bvh_query_leaves_ray.js +3 -8
- package/src/core/bvh2/bvh3/query/bvh_query_leaves_ray.spec.js +2 -2
- package/src/core/bvh2/bvh3/query/bvh_query_user_data_generic.js +2 -2
- package/src/core/bvh2/bvh3/query/bvh_query_user_data_generic.spec.js +2 -2
- package/src/core/bvh2/bvh3/query/bvh_query_user_data_nearest_to_point.js +3 -3
- package/src/core/bvh2/bvh3/query/bvh_query_user_data_nearest_to_point.spec.js +3 -3
- package/src/core/bvh2/bvh3/query/bvh_query_user_data_overlaps_frustum.js +3 -3
- package/src/core/bvh2/bvh3/query/compute_tight_near_far_clipping_planes.js +4 -4
- package/src/core/bvh2/bvh3/query/compute_tight_near_far_clipping_planes.spec.js +3 -3
- package/src/engine/graphics/ecs/decal/v2/FPDecalSystem.js +22 -24
- package/src/engine/graphics/ecs/mesh/Mesh.js +8 -8
- package/src/engine/graphics/ecs/mesh/MeshSystem.js +3 -5
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometry.js +6 -6
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.d.ts +3 -3
- package/src/engine/graphics/ecs/mesh-v2/ShadedGeometrySystem.js +16 -18
- package/src/engine/graphics/ecs/mesh-v2/render/ShadedGeometryRendererContext.js +5 -5
- package/src/engine/graphics/particles/particular/engine/ParticularEngine.js +9 -11
- package/src/engine/graphics/particles/particular/engine/emitter/ParticleEmitter.js +3 -3
- package/src/engine/graphics/render/forward_plus/LightManager.js +30 -32
- package/src/engine/graphics/render/forward_plus/LightRenderMetadata.js +3 -3
- package/src/engine/graphics/sh3/LightProbeVolume.js +19 -19
- package/src/engine/graphics/sh3/path_tracer/GeometryBVHBatched.js +4 -6
- package/src/engine/graphics/sh3/path_tracer/PathTracer.js +17 -19
- package/src/engine/sound/ecs/emitter/SoundEmitter.js +18 -16
- package/src/engine/sound/ecs/emitter/SoundEmitterSystem.js +3 -5
|
@@ -3,25 +3,27 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
import {computeHashIntegerArray} from "../../../../core/collection/array/computeHashIntegerArray.js";
|
|
6
|
+
import { BvhClient } from "../../../../core/bvh2/bvh3/BvhClient.js";
|
|
7
|
+
import { computeHashIntegerArray } from "../../../../core/collection/array/computeHashIntegerArray.js";
|
|
8
8
|
import List from '../../../../core/collection/list/List.js';
|
|
9
|
-
import {aabb3_array_compute_from_sphere} from "../../../../core/geom/3d/aabb/aabb3_array_compute_from_sphere.js";
|
|
9
|
+
import { aabb3_array_compute_from_sphere } from "../../../../core/geom/3d/aabb/aabb3_array_compute_from_sphere.js";
|
|
10
10
|
import Vector1 from "../../../../core/geom/Vector1.js";
|
|
11
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
interpolate_irradiance_linear
|
|
13
|
+
} from "../../../../core/math/physics/irradiance/interpolate_irradiance_linear.js";
|
|
12
14
|
import {
|
|
13
15
|
interpolate_irradiance_lograrithmic
|
|
14
16
|
} from "../../../../core/math/physics/irradiance/interpolate_irradiance_lograrithmic.js";
|
|
15
|
-
import {interpolate_irradiance_smith} from "../../../../core/math/physics/irradiance/interpolate_irradiance_smith.js";
|
|
16
|
-
import {objectKeyByValue} from "../../../../core/model/object/objectKeyByValue.js";
|
|
17
|
-
import {computeHashFloat} from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
18
|
-
import {number_compare_ascending} from "../../../../core/primitives/numbers/number_compare_ascending.js";
|
|
19
|
-
import {compareStrings} from "../../../../core/primitives/strings/compareStrings.js";
|
|
20
|
-
import {computeStringHash} from "../../../../core/primitives/strings/computeStringHash.js";
|
|
21
|
-
import {SoundAttenuationFunction} from "./SoundAttenuationFunction.js";
|
|
22
|
-
import {SoundEmitterFlags} from "./SoundEmitterFlags.js";
|
|
23
|
-
import {SoundPanningModelType} from "./SoundPanningModelType.js";
|
|
24
|
-
import {SoundTrack} from "./SoundTrack.js";
|
|
17
|
+
import { interpolate_irradiance_smith } from "../../../../core/math/physics/irradiance/interpolate_irradiance_smith.js";
|
|
18
|
+
import { objectKeyByValue } from "../../../../core/model/object/objectKeyByValue.js";
|
|
19
|
+
import { computeHashFloat } from "../../../../core/primitives/numbers/computeHashFloat.js";
|
|
20
|
+
import { number_compare_ascending } from "../../../../core/primitives/numbers/number_compare_ascending.js";
|
|
21
|
+
import { compareStrings } from "../../../../core/primitives/strings/compareStrings.js";
|
|
22
|
+
import { computeStringHash } from "../../../../core/primitives/strings/computeStringHash.js";
|
|
23
|
+
import { SoundAttenuationFunction } from "./SoundAttenuationFunction.js";
|
|
24
|
+
import { SoundEmitterFlags } from "./SoundEmitterFlags.js";
|
|
25
|
+
import { SoundPanningModelType } from "./SoundPanningModelType.js";
|
|
26
|
+
import { SoundTrack } from "./SoundTrack.js";
|
|
25
27
|
|
|
26
28
|
const DEFAULT_DISTANCE_MIN = 1;
|
|
27
29
|
const DEFAULT_DISTANCE_MAX = 10000;
|
|
@@ -116,9 +118,9 @@ export class SoundEmitter {
|
|
|
116
118
|
|
|
117
119
|
/**
|
|
118
120
|
* @readonly
|
|
119
|
-
* @type {
|
|
121
|
+
* @type {BvhClient}
|
|
120
122
|
*/
|
|
121
|
-
bvh = new
|
|
123
|
+
bvh = new BvhClient();
|
|
122
124
|
|
|
123
125
|
/**
|
|
124
126
|
*
|
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
ExplicitBinaryBoundingVolumeHierarchy
|
|
10
|
-
} from "../../../../core/bvh2/bvh3/ExplicitBinaryBoundingVolumeHierarchy.js";
|
|
8
|
+
import { BVH } from "../../../../core/bvh2/bvh3/BVH.js";
|
|
11
9
|
import { bvh_query_user_data_generic } from "../../../../core/bvh2/bvh3/query/bvh_query_user_data_generic.js";
|
|
12
10
|
import { BVHQueryIntersectsSphere } from "../../../../core/bvh2/bvh3/query/BVHQueryIntersectsSphere.js";
|
|
13
11
|
import { invokeObjectCompare } from "../../../../core/model/object/invokeObjectCompare.js";
|
|
@@ -91,10 +89,10 @@ export class SoundEmitterSystem extends System {
|
|
|
91
89
|
|
|
92
90
|
/**
|
|
93
91
|
* Spatial index
|
|
94
|
-
* @type {
|
|
92
|
+
* @type {BVH}
|
|
95
93
|
* @private
|
|
96
94
|
*/
|
|
97
|
-
this.__bvh = new
|
|
95
|
+
this.__bvh = new BVH();
|
|
98
96
|
|
|
99
97
|
/**
|
|
100
98
|
* Number of currently linked entities
|