@playcanvas/supersplat-viewer 1.8.2 → 1.8.3
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/index.js +1 -1
- package/package.json +5 -5
- package/public/index.js +8 -11
- package/public/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcanvas/supersplat-viewer",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"author": "PlayCanvas <support@playcanvas.com>",
|
|
5
5
|
"homepage": "https://github.com/playcanvas/supersplat-viewer#readme",
|
|
6
6
|
"description": "Viewer for https://superspl.at",
|
|
@@ -41,20 +41,20 @@
|
|
|
41
41
|
"@playcanvas/web-components": "0.2.11",
|
|
42
42
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
43
43
|
"@rollup/plugin-typescript": "12.3.0",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
45
|
-
"@typescript-eslint/parser": "8.
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "8.47.0",
|
|
45
|
+
"@typescript-eslint/parser": "8.47.0",
|
|
46
46
|
"autoprefixer": "10.4.22",
|
|
47
47
|
"concurrently": "9.2.1",
|
|
48
48
|
"eslint": "9.39.1",
|
|
49
49
|
"globals": "16.5.0",
|
|
50
|
-
"playcanvas": "2.13.
|
|
50
|
+
"playcanvas": "2.13.2",
|
|
51
51
|
"postcss": "8.5.6",
|
|
52
52
|
"publint": "0.3.15",
|
|
53
53
|
"rollup": "4.53.2",
|
|
54
54
|
"rollup-plugin-copy": "3.5.0",
|
|
55
55
|
"rollup-plugin-scss": "4.0.1",
|
|
56
56
|
"rollup-plugin-string": "3.0.0",
|
|
57
|
-
"sass": "1.94.
|
|
57
|
+
"sass": "1.94.1",
|
|
58
58
|
"serve": "14.2.5",
|
|
59
59
|
"typescript": "5.9.3"
|
|
60
60
|
},
|
package/public/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const TRACEID_GPU_TIMINGS = 'GpuTimings';
|
|
2
2
|
|
|
3
|
-
const version = '2.13.
|
|
4
|
-
const revision = '
|
|
3
|
+
const version = '2.13.2';
|
|
4
|
+
const revision = '8620544';
|
|
5
5
|
function extend(target, ex) {
|
|
6
6
|
for(const prop in ex){
|
|
7
7
|
const copy = ex[prop];
|
|
@@ -33997,7 +33997,6 @@ var glslGsplatCopyToWorkBufferPS = `
|
|
|
33997
33997
|
#include "gsplatQuatToMat3VS"
|
|
33998
33998
|
#include "gsplatSourceFormatVS"
|
|
33999
33999
|
#include "packHalfPS"
|
|
34000
|
-
uniform mat4 uTransform;
|
|
34001
34000
|
uniform int uStartLine;
|
|
34002
34001
|
uniform int uViewportWidth;
|
|
34003
34002
|
#ifdef GSPLAT_LOD
|
|
@@ -34037,7 +34036,7 @@ void main(void) {
|
|
|
34037
34036
|
source.id = uint(originalIndex);
|
|
34038
34037
|
source.uv = ivec2(source.id % srcSize, source.id / srcSize);
|
|
34039
34038
|
vec3 modelCenter = readCenter(source);
|
|
34040
|
-
|
|
34039
|
+
vec3 worldCenter = (matrix_model * vec4(modelCenter, 1.0)).xyz;
|
|
34041
34040
|
SplatCenter center;
|
|
34042
34041
|
initCenter(modelCenter, center);
|
|
34043
34042
|
vec3 covA, covB;
|
|
@@ -34047,7 +34046,7 @@ void main(void) {
|
|
|
34047
34046
|
covA.y, covB.x, covB.y,
|
|
34048
34047
|
covA.z, covB.y, covB.z
|
|
34049
34048
|
);
|
|
34050
|
-
mat3 linear = mat3(
|
|
34049
|
+
mat3 linear = mat3(matrix_model);
|
|
34051
34050
|
mat3 Ct = linear * C * transpose(linear);
|
|
34052
34051
|
covA = Ct[0];
|
|
34053
34052
|
covB = vec3(Ct[1][1], Ct[1][2], Ct[2][2]);
|
|
@@ -34073,7 +34072,7 @@ void main(void) {
|
|
|
34073
34072
|
pcFragColor0 = color;
|
|
34074
34073
|
#endif
|
|
34075
34074
|
#ifndef GSPLAT_COLOR_ONLY
|
|
34076
|
-
pcFragColor1 = uvec4(floatBitsToUint(
|
|
34075
|
+
pcFragColor1 = uvec4(floatBitsToUint(worldCenter.x), floatBitsToUint(worldCenter.y), floatBitsToUint(worldCenter.z), packHalf2x16Safe(vec2(covA.z, covB.z)));
|
|
34077
34076
|
pcFragColor2 = uvec2(packHalf2x16Safe(covA.xy), packHalf2x16Safe(covB.xy));
|
|
34078
34077
|
#endif
|
|
34079
34078
|
}
|
|
@@ -34088,7 +34087,6 @@ var wgslGsplatCopyToWorkBufferPS = `
|
|
|
34088
34087
|
#include "gsplatQuatToMat3VS"
|
|
34089
34088
|
#include "gsplatSourceFormatVS"
|
|
34090
34089
|
#include "packHalfPS"
|
|
34091
|
-
uniform uTransform: mat4x4f;
|
|
34092
34090
|
uniform uStartLine: i32;
|
|
34093
34091
|
uniform uViewportWidth: i32;
|
|
34094
34092
|
#ifdef GSPLAT_LOD
|
|
@@ -34129,7 +34127,7 @@ fn fragmentMain(input: FragmentInput) -> FragmentOutput {
|
|
|
34129
34127
|
source.id = u32(originalIndex);
|
|
34130
34128
|
source.uv = vec2i(i32(source.id % srcSize), i32(source.id / srcSize));
|
|
34131
34129
|
var modelCenter = readCenter(&source);
|
|
34132
|
-
|
|
34130
|
+
let worldCenter = (uniform.matrix_model * vec4f(modelCenter, 1.0)).xyz;
|
|
34133
34131
|
var center: SplatCenter;
|
|
34134
34132
|
initCenter(modelCenter, ¢er);
|
|
34135
34133
|
var covA: vec3f;
|
|
@@ -34140,7 +34138,7 @@ fn fragmentMain(input: FragmentInput) -> FragmentOutput {
|
|
|
34140
34138
|
vec3f(covA.y, covB.x, covB.y),
|
|
34141
34139
|
vec3f(covA.z, covB.y, covB.z)
|
|
34142
34140
|
);
|
|
34143
|
-
let linear = mat3x3f(uniform.
|
|
34141
|
+
let linear = mat3x3f(uniform.matrix_model[0].xyz, uniform.matrix_model[1].xyz, uniform.matrix_model[2].xyz);
|
|
34144
34142
|
let Ct = linear * C * transpose(linear);
|
|
34145
34143
|
covA = Ct[0];
|
|
34146
34144
|
covB = vec3f(Ct[1][1], Ct[1][2], Ct[2][2]);
|
|
@@ -34155,7 +34153,7 @@ fn fragmentMain(input: FragmentInput) -> FragmentOutput {
|
|
|
34155
34153
|
color = vec4f(color.xyz * uniform.uColorMultiply, color.w);
|
|
34156
34154
|
output.color = color;
|
|
34157
34155
|
#ifndef GSPLAT_COLOR_ONLY
|
|
34158
|
-
output.color1 = vec4u(bitcast<u32>(
|
|
34156
|
+
output.color1 = vec4u(bitcast<u32>(worldCenter.x), bitcast<u32>(worldCenter.y), bitcast<u32>(worldCenter.z), pack2x16floatSafe(vec2f(covA.z, covB.z)));
|
|
34159
34157
|
output.color2 = vec2u(pack2x16floatSafe(covA.xy), pack2x16floatSafe(covB.xy));
|
|
34160
34158
|
#endif
|
|
34161
34159
|
}
|
|
@@ -34212,7 +34210,6 @@ class GSplatWorkBufferRenderPass extends RenderPass {
|
|
|
34212
34210
|
const { intervals, activeSplats, lineStart, viewport, intervalTexture } = splatInfo;
|
|
34213
34211
|
const workBufferRenderInfo = resource.getWorkBufferRenderInfo(intervals.length > 0, this.workBuffer.colorTextureFormat, this.colorOnly);
|
|
34214
34212
|
workBufferRenderInfo.material.setParameters(device);
|
|
34215
|
-
scope.resolve('uTransform').setValue(splatInfo.node.getWorldTransform().data);
|
|
34216
34213
|
if (intervalTexture) {
|
|
34217
34214
|
scope.resolve('uIntervalsTexture').setValue(intervalTexture.texture);
|
|
34218
34215
|
}
|