@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.es.max.js
CHANGED
|
@@ -22843,13 +22843,15 @@ const GSplat_VS = (
|
|
|
22843
22843
|
}
|
|
22844
22844
|
|
|
22845
22845
|
// === calcSplatUV() - returns optional UV ===
|
|
22846
|
-
fn
|
|
22846
|
+
fn getSplatId(orderId: u32, textureWidth: u32, numSplats: u32) -> u32 {
|
|
22847
22847
|
let orderUV = vec2<i32>(
|
|
22848
22848
|
i32(orderId % textureWidth),
|
|
22849
22849
|
i32(orderId / textureWidth)
|
|
22850
22850
|
);
|
|
22851
22851
|
|
|
22852
|
-
|
|
22852
|
+
return u32(textureLoad(splatOrder, orderUV, 0).r);
|
|
22853
|
+
}
|
|
22854
|
+
fn calcSplatUV(splatId: u32, textureWidth: u32, numSplats: u32) -> vec2<i32> {
|
|
22853
22855
|
return vec2<i32>(
|
|
22854
22856
|
i32(splatId % textureWidth),
|
|
22855
22857
|
i32(splatId / textureWidth)
|
|
@@ -22948,9 +22950,11 @@ const GSplat_VS = (
|
|
|
22948
22950
|
if (orderId >= numSplats) {
|
|
22949
22951
|
return discardSplat();
|
|
22950
22952
|
}
|
|
22953
|
+
|
|
22954
|
+
let splatId = getSplatId(orderId, textureWidth, numSplats);
|
|
22951
22955
|
|
|
22952
22956
|
// Calculate splat UV and load all data in one go
|
|
22953
|
-
let splatUV = calcSplatUV(
|
|
22957
|
+
let splatUV = calcSplatUV(splatId, textureWidth, numSplats);
|
|
22954
22958
|
let splatData = getSplatData(splatUV);
|
|
22955
22959
|
|
|
22956
22960
|
// Load color early for alpha test
|
|
@@ -42363,7 +42367,7 @@ class PostProcessingComponent extends ComponentBase {
|
|
|
42363
42367
|
}
|
|
42364
42368
|
}
|
|
42365
42369
|
|
|
42366
|
-
const version = "1.0.
|
|
42370
|
+
const version = "1.0.45";
|
|
42367
42371
|
|
|
42368
42372
|
class Engine3D {
|
|
42369
42373
|
/**
|
|
@@ -66402,6 +66406,7 @@ class TilesRenderer {
|
|
|
66402
66406
|
toggleTime: 0,
|
|
66403
66407
|
queueProcessTime: 0
|
|
66404
66408
|
};
|
|
66409
|
+
transCdnUrlFunc = null;
|
|
66405
66410
|
constructor(url = null) {
|
|
66406
66411
|
this.rootURL = url;
|
|
66407
66412
|
this.lruCache = new LRUCache();
|
|
@@ -66850,7 +66855,7 @@ class TilesRenderer {
|
|
|
66850
66855
|
return parts.length > 1 ? parts[parts.length - 1] : "";
|
|
66851
66856
|
};
|
|
66852
66857
|
const extension = getUrlExtension(uri);
|
|
66853
|
-
const fullUrl = url;
|
|
66858
|
+
const fullUrl = this.transCdnUrlFunc ? this.transCdnUrlFunc(url) : url;
|
|
66854
66859
|
let scene = null;
|
|
66855
66860
|
const loader = new FileLoader();
|
|
66856
66861
|
switch (extension.toLowerCase()) {
|