@rings-webgpu/core 1.0.18 → 1.0.19
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/dist/rings.es.js +62 -62
- package/dist/rings.es.js.map +2 -2
- package/dist/rings.es.max.js +7 -2
- package/dist/rings.umd.js +62 -62
- package/dist/rings.umd.js.map +2 -2
- package/dist/rings.umd.max.js +7 -2
- package/dist/types/loader/parser/tileRenderer/core/BoundingVolume.d.ts +1 -0
- package/package.json +1 -1
package/dist/rings.umd.max.js
CHANGED
|
@@ -41064,7 +41064,7 @@ else if (typeof exports === 'object')
|
|
|
41064
41064
|
}
|
|
41065
41065
|
}
|
|
41066
41066
|
|
|
41067
|
-
const version = "1.0.
|
|
41067
|
+
const version = "1.0.19";
|
|
41068
41068
|
|
|
41069
41069
|
class Engine3D {
|
|
41070
41070
|
/**
|
|
@@ -61389,12 +61389,16 @@ fn frag(){
|
|
|
61389
61389
|
}
|
|
61390
61390
|
|
|
61391
61391
|
class BoundingVolume {
|
|
61392
|
+
static s_tmpMatrix = null;
|
|
61392
61393
|
_type;
|
|
61393
61394
|
_data;
|
|
61394
61395
|
_box;
|
|
61395
61396
|
_sphere;
|
|
61396
61397
|
_matrix;
|
|
61397
61398
|
constructor(data) {
|
|
61399
|
+
if (!BoundingVolume.s_tmpMatrix) {
|
|
61400
|
+
BoundingVolume.s_tmpMatrix = new Matrix4();
|
|
61401
|
+
}
|
|
61398
61402
|
this._data = data;
|
|
61399
61403
|
if (data.box) {
|
|
61400
61404
|
this._type = "box";
|
|
@@ -61518,7 +61522,8 @@ fn frag(){
|
|
|
61518
61522
|
}
|
|
61519
61523
|
return target;
|
|
61520
61524
|
} else if (this._box) {
|
|
61521
|
-
const worldMatrix =
|
|
61525
|
+
const worldMatrix = BoundingVolume.s_tmpMatrix;
|
|
61526
|
+
worldMatrix.identity();
|
|
61522
61527
|
if (this._matrix) {
|
|
61523
61528
|
if (parentTransform) {
|
|
61524
61529
|
worldMatrix.multiplyMatrices(parentTransform, this._matrix);
|
|
@@ -6,6 +6,7 @@ import { Frustum } from '../../../../core/bound/Frustum';
|
|
|
6
6
|
import { BoundingVolumeData } from './TileSet';
|
|
7
7
|
export type BoundingVolumeType = 'box' | 'sphere' | 'region';
|
|
8
8
|
export declare class BoundingVolume {
|
|
9
|
+
static s_tmpMatrix: Matrix4;
|
|
9
10
|
private _type;
|
|
10
11
|
private _data;
|
|
11
12
|
private _box?;
|