@rings-webgpu/core 1.0.45 → 1.0.46
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 +9 -5
- package/dist/rings.es.js.map +2 -2
- package/dist/rings.es.max.js +10 -5
- package/dist/rings.umd.js +9 -5
- package/dist/rings.umd.js.map +2 -2
- package/dist/rings.umd.max.js +10 -5
- package/dist/types/loader/parser/tileRenderer/TilesRenderer.d.ts +1 -0
- package/package.json +1 -1
package/dist/rings.umd.max.js
CHANGED
|
@@ -22850,13 +22850,15 @@ struct InstanceData {
|
|
|
22850
22850
|
}
|
|
22851
22851
|
|
|
22852
22852
|
// === calcSplatUV() - returns optional UV ===
|
|
22853
|
-
fn
|
|
22853
|
+
fn getSplatId(orderId: u32, textureWidth: u32, numSplats: u32) -> u32 {
|
|
22854
22854
|
let orderUV = vec2<i32>(
|
|
22855
22855
|
i32(orderId % textureWidth),
|
|
22856
22856
|
i32(orderId / textureWidth)
|
|
22857
22857
|
);
|
|
22858
22858
|
|
|
22859
|
-
|
|
22859
|
+
return u32(textureLoad(splatOrder, orderUV, 0).r);
|
|
22860
|
+
}
|
|
22861
|
+
fn calcSplatUV(splatId: u32, textureWidth: u32, numSplats: u32) -> vec2<i32> {
|
|
22860
22862
|
return vec2<i32>(
|
|
22861
22863
|
i32(splatId % textureWidth),
|
|
22862
22864
|
i32(splatId / textureWidth)
|
|
@@ -22955,9 +22957,11 @@ struct InstanceData {
|
|
|
22955
22957
|
if (orderId >= numSplats) {
|
|
22956
22958
|
return discardSplat();
|
|
22957
22959
|
}
|
|
22960
|
+
|
|
22961
|
+
let splatId = getSplatId(orderId, textureWidth, numSplats);
|
|
22958
22962
|
|
|
22959
22963
|
// Calculate splat UV and load all data in one go
|
|
22960
|
-
let splatUV = calcSplatUV(
|
|
22964
|
+
let splatUV = calcSplatUV(splatId, textureWidth, numSplats);
|
|
22961
22965
|
let splatData = getSplatData(splatUV);
|
|
22962
22966
|
|
|
22963
22967
|
// Load color early for alpha test
|
|
@@ -42370,7 +42374,7 @@ else if (typeof exports === 'object')
|
|
|
42370
42374
|
}
|
|
42371
42375
|
}
|
|
42372
42376
|
|
|
42373
|
-
const version = "1.0.
|
|
42377
|
+
const version = "1.0.45";
|
|
42374
42378
|
|
|
42375
42379
|
class Engine3D {
|
|
42376
42380
|
/**
|
|
@@ -66409,6 +66413,7 @@ fn frag(){
|
|
|
66409
66413
|
toggleTime: 0,
|
|
66410
66414
|
queueProcessTime: 0
|
|
66411
66415
|
};
|
|
66416
|
+
transCdnUrlFunc = null;
|
|
66412
66417
|
constructor(url = null) {
|
|
66413
66418
|
this.rootURL = url;
|
|
66414
66419
|
this.lruCache = new LRUCache();
|
|
@@ -66857,7 +66862,7 @@ fn frag(){
|
|
|
66857
66862
|
return parts.length > 1 ? parts[parts.length - 1] : "";
|
|
66858
66863
|
};
|
|
66859
66864
|
const extension = getUrlExtension(uri);
|
|
66860
|
-
const fullUrl = url;
|
|
66865
|
+
const fullUrl = this.transCdnUrlFunc ? this.transCdnUrlFunc(url) : url;
|
|
66861
66866
|
let scene = null;
|
|
66862
66867
|
const loader = new FileLoader();
|
|
66863
66868
|
switch (extension.toLowerCase()) {
|