@terraware/web-components 4.2.21-rc.0 → 4.2.21
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/components/VirtualWalkthrough/SplatCrop.js +2 -2
- package/components/VirtualWalkthrough/SplatRevealRain.js +2 -2
- package/components/VirtualWalkthrough/VirtualWalkthroughViewer.d.ts.map +1 -1
- package/components/VirtualWalkthrough/VirtualWalkthroughViewer.js +1 -1
- package/components/VirtualWalkthrough/gsplat-fade-crop-effect.d.ts +2 -2
- package/components/VirtualWalkthrough/gsplat-fade-crop-effect.js +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Script } from '@playcanvas/react/components';
|
|
3
3
|
import { Vec3 } from 'playcanvas';
|
|
4
|
-
import {
|
|
4
|
+
import { GSplatCropShaderEffect } from 'playcanvas/scripts/esm/gsplat/shader-effect-crop.mjs';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
const SplatCrop = ({
|
|
7
7
|
aabbMin = [-1, -1, -1],
|
|
@@ -9,7 +9,7 @@ const SplatCrop = ({
|
|
|
9
9
|
edgeScaleFactor = 0.5
|
|
10
10
|
}) => {
|
|
11
11
|
return /*#__PURE__*/_jsx(Script, {
|
|
12
|
-
script:
|
|
12
|
+
script: GSplatCropShaderEffect,
|
|
13
13
|
aabbMin: new Vec3(...aabbMin),
|
|
14
14
|
aabbMax: new Vec3(...aabbMax),
|
|
15
15
|
edgeScaleFactor: edgeScaleFactor
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Script } from '@playcanvas/react/components';
|
|
3
3
|
import { Color, Vec3 } from 'playcanvas';
|
|
4
|
-
import {
|
|
4
|
+
import { GSplatRevealRain } from 'playcanvas/scripts/esm/gsplat/reveal-rain.mjs';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
const SplatRevealRain = ({
|
|
7
7
|
enabled = true,
|
|
@@ -19,7 +19,7 @@ const SplatRevealRain = ({
|
|
|
19
19
|
endRadius = 5
|
|
20
20
|
}) => {
|
|
21
21
|
return /*#__PURE__*/_jsx(Script, {
|
|
22
|
-
script:
|
|
22
|
+
script: GSplatRevealRain,
|
|
23
23
|
enabled: enabled,
|
|
24
24
|
center: new Vec3(...center),
|
|
25
25
|
distance: distance,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VirtualWalkthroughViewer.d.ts","sourceRoot":"","sources":["../../../src/components/VirtualWalkthrough/VirtualWalkthroughViewer.tsx"],"names":[],"mappings":"AAYA,OAAmB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAK3D,OAAsB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAUtE,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7D,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,iBAAiB,EAAE,CAAC,WAAW,EAAE,eAAe,EAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC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AAC,CAAC;IAC5E,OAAO,EAAE,oBAAoB,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,QAAA,MAAM,wBAAwB,GAAI,qQAkB/B,6BAA6B,4CA2T/B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -226,7 +226,7 @@ const VirtualWalkthroughViewer = ({
|
|
|
226
226
|
}), /*#__PURE__*/_jsx(Script, {
|
|
227
227
|
script: TfXrNavigation,
|
|
228
228
|
enabled: !isEdit,
|
|
229
|
-
enableTeleport:
|
|
229
|
+
enableTeleport: false
|
|
230
230
|
}), !isCurrentlyInXr && /*#__PURE__*/_jsx(Script, {
|
|
231
231
|
script: AutoRotator,
|
|
232
232
|
enabled: !isEdit && autoRotate && !viewingAnnotation,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Vec3 } from 'playcanvas';
|
|
2
|
-
import {
|
|
2
|
+
import { GSplatShaderEffect } from 'playcanvas/scripts/esm/gsplat/gsplat-shader-effect.mjs';
|
|
3
3
|
/**
|
|
4
4
|
* Fade crop shader effect for gaussian splats.
|
|
5
5
|
* Applies a smooth fade to splats outside the AABB based on distance.
|
|
6
6
|
* Splats at the AABB edge are fully visible, and fade to invisible at fadeDistance away.
|
|
7
7
|
*/
|
|
8
|
-
export declare class GsplatFadeCropShaderEffect extends
|
|
8
|
+
export declare class GsplatFadeCropShaderEffect extends GSplatShaderEffect {
|
|
9
9
|
static scriptName: string;
|
|
10
10
|
_aabbMinArray: number[];
|
|
11
11
|
_aabbMaxArray: number[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vec3 } from 'playcanvas';
|
|
2
|
-
import {
|
|
2
|
+
import { GSplatShaderEffect } from 'playcanvas/scripts/esm/gsplat/gsplat-shader-effect.mjs';
|
|
3
3
|
const shaderGLSL = /* glsl */`
|
|
4
4
|
uniform vec3 uAabbMin;
|
|
5
5
|
uniform vec3 uAabbMax;
|
|
@@ -92,7 +92,7 @@ fn modifySplatColor(center: vec3f, color: ptr<function, vec4f>) {
|
|
|
92
92
|
* Applies a smooth fade to splats outside the AABB based on distance.
|
|
93
93
|
* Splats at the AABB edge are fully visible, and fade to invisible at fadeDistance away.
|
|
94
94
|
*/
|
|
95
|
-
export class GsplatFadeCropShaderEffect extends
|
|
95
|
+
export class GsplatFadeCropShaderEffect extends GSplatShaderEffect {
|
|
96
96
|
static scriptName = 'gsplatFadeCropShaderEffect';
|
|
97
97
|
_aabbMinArray = [0, 0, 0];
|
|
98
98
|
_aabbMaxArray = [0, 0, 0];
|