shaders 2.2.0 → 2.2.1
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/core/{AngularBlur-BJi-Edw-.js → AngularBlur-BZENxuhv.js} +4 -4
- package/dist/core/{Ascii-B1KHvM1u.js → Ascii-joVW9dAD.js} +11 -11
- package/dist/core/{Blob-CBASKMfO.js → Blob-Ds3jasiC.js} +15 -14
- package/dist/core/{Blur-bz9Ubr0x.js → Blur-sKjcr9_K.js} +1 -1
- package/dist/core/Bulge-CdcB9we6.js +103 -0
- package/dist/core/{CRTScreen-BnfROw0f.js → CRTScreen-BWDSeX_0.js} +6 -6
- package/dist/core/{ChannelBlur-DhWT-55L.js → ChannelBlur-i9M5gbkh.js} +6 -6
- package/dist/core/{Checkerboard-CgWGd9t7.js → Checkerboard-D9-UAs26.js} +17 -16
- package/dist/core/{ChromaFlow-DOVrymVB.js → ChromaFlow-DZAJwEBw.js} +6 -6
- package/dist/core/{ChromaticAberration-CyTSXY7j.js → ChromaticAberration-DLYIcjJx.js} +2 -2
- package/dist/core/{Circle-0WHV1HrM.js → Circle-Ca-LtXkF.js} +13 -12
- package/dist/core/{CursorTrail-3zQ5rtjh.js → CursorTrail-B_VZJBOK.js} +11 -11
- package/dist/core/{DiffuseBlur-DLIKRsnf.js → DiffuseBlur-COpm1qrw.js} +5 -5
- package/dist/core/{Dither-Cnbknfji.js → Dither-MK-9r3tw.js} +2 -2
- package/dist/core/{DotGrid-BkItF2C8.js → DotGrid-DP__DqQj.js} +12 -11
- package/dist/core/{Duotone-BI4tJI3k.js → Duotone-CmkF6eDj.js} +3 -3
- package/dist/core/FilmGrain-ByNyK2gs.js +28 -0
- package/dist/core/FloatingParticles-CxcXDtZg.js +160 -0
- package/dist/core/GlassTiles-CxUl9MxF.js +52 -0
- package/dist/core/{Glow-BD0t9E1L.js → Glow-Cz3ImaBH.js} +5 -5
- package/dist/core/{Godrays-CPIAbymT.js → Godrays-BHfh6URI.js} +18 -17
- package/dist/core/{Grayscale-BtOqK43k.js → Grayscale-FPSUcFGC.js} +1 -1
- package/dist/core/{Grid-Ro0Yi5WY.js → Grid-BvM0M3Hl.js} +12 -11
- package/dist/core/GridDistortion-yjmNv0Q3.js +147 -0
- package/dist/core/{Group-DTXP-whY.js → Group-jZZimqG1.js} +1 -1
- package/dist/core/{Halftone-B_MuXCD8.js → Halftone-DWIVrS2s.js} +4 -4
- package/dist/core/{HueShift-CKG9M-d2.js → HueShift-CBupF7d4.js} +1 -1
- package/dist/core/{ImageTexture-B6zFP2fB.js → ImageTexture-GrTz4Fx7.js} +20 -19
- package/dist/core/{Invert-Cd7GK1vs.js → Invert-CCQ1H_Qr.js} +1 -1
- package/dist/core/{LinearBlur-JFLMQBY4.js → LinearBlur-DHBRP6Yh.js} +4 -4
- package/dist/core/{LinearGradient-Ztg5Lzwj.js → LinearGradient-B4C3CKhf.js} +16 -15
- package/dist/core/Liquify-DNHtcXxv.js +139 -0
- package/dist/core/Pixelate-BKooNVcb.js +38 -0
- package/dist/core/{PolarCoordinates-qzU8gNXR.js → PolarCoordinates-DKhEbQhq.js} +20 -16
- package/dist/core/{Posterize-BkBU8tnN.js → Posterize-D81ZG2A9.js} +1 -1
- package/dist/core/{ProgressiveBlur-HAQf188T.js → ProgressiveBlur-CPdReTnY.js} +7 -7
- package/dist/core/{RadialGradient-DISqJuTZ.js → RadialGradient-XmwfZ91d.js} +15 -14
- package/dist/core/RectangularCoordinates-DWY7ptY1.js +92 -0
- package/dist/core/{Ripples-CX8Qgnog.js → Ripples-CndvRX-N.js} +13 -12
- package/dist/core/{Saturation-DMxPYmIU.js → Saturation-C6u9sNkr.js} +1 -1
- package/dist/core/{SimplexNoise-B5ygfckG.js → SimplexNoise-BH0ZZzP4.js} +12 -11
- package/dist/core/{SineWave-KPFlP3Wk.js → SineWave-DBH8MraQ.js} +13 -12
- package/dist/core/{SolidColor-B8oxlGge.js → SolidColor-DR665qss.js} +6 -5
- package/dist/core/{Spiral-CX22hUJ3.js → Spiral--7KUy0u3.js} +15 -14
- package/dist/core/{Strands-Bv7RvyRC.js → Strands-Bi1Is8_o.js} +19 -18
- package/dist/core/{Swirl-CIXreSgZ.js → Swirl-DuYM23jG.js} +14 -13
- package/dist/core/{TiltShift-J0UUcoh-.js → TiltShift-BUvZWBsh.js} +11 -11
- package/dist/core/{Tritone-E9eHvjJV.js → Tritone-CKifp6Ob.js} +3 -3
- package/dist/core/{Twirl-ClhPpapm.js → Twirl-Ztlb9x_h.js} +21 -17
- package/dist/core/{Vibrance-CqnE9Zco.js → Vibrance-B7EsDw6e.js} +1 -1
- package/dist/core/{WaveDistortion-gecgVpvO.js → WaveDistortion-HCnk54tD.js} +20 -17
- package/dist/core/{ZoomBlur-CaGbSDG3.js → ZoomBlur-Ck6M9A2W.js} +2 -2
- package/dist/core/{colorMixing-C_ESXyqX.js → colorMixing-DPZ-Td4U.js} +3 -3
- package/dist/core/edges-B-tVdqcI.js +16 -0
- package/dist/core/index.js +1315 -945
- package/dist/core/performanceTracker.d.ts +2 -0
- package/dist/core/performanceTracker.d.ts.map +1 -1
- package/dist/core/renderer.d.ts +12 -0
- package/dist/core/renderer.d.ts.map +1 -1
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +3 -3
- package/dist/core/shaders/Ascii/index.js +2 -2
- package/dist/core/shaders/Blob/index.d.ts.map +1 -1
- package/dist/core/shaders/Blob/index.js +5 -5
- package/dist/core/shaders/Blur/index.js +2 -2
- package/dist/core/shaders/Bulge/index.d.ts.map +1 -1
- package/dist/core/shaders/Bulge/index.js +4 -4
- package/dist/core/shaders/CRTScreen/index.js +2 -2
- package/dist/core/shaders/ChannelBlur/index.js +2 -2
- package/dist/core/shaders/Checkerboard/index.d.ts.map +1 -1
- package/dist/core/shaders/Checkerboard/index.js +4 -4
- package/dist/core/shaders/ChromaFlow/index.js +3 -3
- package/dist/core/shaders/ChromaticAberration/index.js +3 -3
- package/dist/core/shaders/Circle/index.d.ts.map +1 -1
- package/dist/core/shaders/Circle/index.js +3 -3
- package/dist/core/shaders/CursorTrail/index.js +4 -4
- package/dist/core/shaders/DiffuseBlur/index.js +2 -2
- package/dist/core/shaders/Dither/index.js +3 -3
- package/dist/core/shaders/DotGrid/index.d.ts.map +1 -1
- package/dist/core/shaders/DotGrid/index.js +3 -3
- package/dist/core/shaders/Duotone/index.js +4 -4
- package/dist/core/shaders/FilmGrain/index.d.ts.map +1 -1
- package/dist/core/shaders/FilmGrain/index.js +2 -2
- package/dist/core/shaders/FloatingParticles/index.d.ts.map +1 -1
- package/dist/core/shaders/FloatingParticles/index.js +3 -3
- package/dist/core/shaders/GlassTiles/index.d.ts.map +1 -1
- package/dist/core/shaders/GlassTiles/index.js +2 -2
- package/dist/core/shaders/Glow/index.js +2 -2
- package/dist/core/shaders/Godrays/index.d.ts.map +1 -1
- package/dist/core/shaders/Godrays/index.js +3 -3
- package/dist/core/shaders/Grayscale/index.js +2 -2
- package/dist/core/shaders/Grid/index.d.ts.map +1 -1
- package/dist/core/shaders/Grid/index.js +3 -3
- package/dist/core/shaders/GridDistortion/index.d.ts.map +1 -1
- package/dist/core/shaders/GridDistortion/index.js +4 -4
- package/dist/core/shaders/Group/index.js +2 -2
- package/dist/core/shaders/Halftone/index.js +3 -3
- package/dist/core/shaders/HueShift/index.js +2 -2
- package/dist/core/shaders/ImageTexture/index.d.ts.map +1 -1
- package/dist/core/shaders/ImageTexture/index.js +2 -2
- package/dist/core/shaders/Invert/index.js +2 -2
- package/dist/core/shaders/LinearBlur/index.js +3 -3
- package/dist/core/shaders/LinearGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/LinearGradient/index.js +4 -4
- package/dist/core/shaders/Liquify/index.d.ts.map +1 -1
- package/dist/core/shaders/Liquify/index.js +4 -4
- package/dist/core/shaders/Pixelate/index.d.ts.map +1 -1
- package/dist/core/shaders/Pixelate/index.js +2 -2
- package/dist/core/shaders/PolarCoordinates/index.d.ts.map +1 -1
- package/dist/core/shaders/PolarCoordinates/index.js +4 -4
- package/dist/core/shaders/Posterize/index.js +2 -2
- package/dist/core/shaders/ProgressiveBlur/index.js +3 -3
- package/dist/core/shaders/RadialGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/RadialGradient/index.js +4 -4
- package/dist/core/shaders/RectangularCoordinates/index.d.ts +38 -0
- package/dist/core/shaders/RectangularCoordinates/index.d.ts.map +1 -0
- package/dist/core/shaders/RectangularCoordinates/index.js +8 -0
- package/dist/core/shaders/Ripples/index.d.ts.map +1 -1
- package/dist/core/shaders/Ripples/index.js +4 -4
- package/dist/core/shaders/Saturation/index.js +2 -2
- package/dist/core/shaders/SimplexNoise/index.d.ts.map +1 -1
- package/dist/core/shaders/SimplexNoise/index.js +4 -4
- package/dist/core/shaders/SineWave/index.d.ts.map +1 -1
- package/dist/core/shaders/SineWave/index.js +3 -3
- package/dist/core/shaders/SolidColor/index.d.ts.map +1 -1
- package/dist/core/shaders/SolidColor/index.js +3 -3
- package/dist/core/shaders/Spiral/index.d.ts.map +1 -1
- package/dist/core/shaders/Spiral/index.js +4 -4
- package/dist/core/shaders/Strands/index.d.ts.map +1 -1
- package/dist/core/shaders/Strands/index.js +4 -4
- package/dist/core/shaders/Swirl/index.d.ts.map +1 -1
- package/dist/core/shaders/Swirl/index.js +5 -5
- package/dist/core/shaders/TiltShift/index.js +3 -3
- package/dist/core/shaders/Tritone/index.js +4 -4
- package/dist/core/shaders/Twirl/index.d.ts.map +1 -1
- package/dist/core/shaders/Twirl/index.js +4 -4
- package/dist/core/shaders/Vibrance/index.js +2 -2
- package/dist/core/shaders/WaveDistortion/index.d.ts.map +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +6 -7
- package/dist/core/shaders/ZoomBlur/index.js +3 -3
- package/dist/core/telemetry/collector.d.ts.map +1 -1
- package/dist/core/telemetry/index.js +19 -19
- package/dist/core/{three.tsl-CgyjOhns.js → three.tsl-BqgDcRt9.js} +21 -20
- package/dist/core/{time-myrFQH-u.js → time-5uQ65blS.js} +1 -1
- package/dist/core/{transformations-Bs66Qh16.js → transformations-DBjTkQ5b.js} +1 -1
- package/dist/core/types.d.ts +81 -0
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/utilities/edges.d.ts +13 -2
- package/dist/core/utilities/edges.d.ts.map +1 -1
- package/dist/core/utilities/uvTransform.d.ts +20 -0
- package/dist/core/utilities/uvTransform.d.ts.map +1 -1
- package/dist/react/components/RectangularCoordinates.d.ts +31 -0
- package/dist/react/components/RectangularCoordinates.d.ts.map +1 -0
- package/dist/react/index.cjs +233 -233
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +16300 -15647
- package/dist/react/utils/generatePresetCode.cjs +2 -2
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +12 -0
- package/dist/registry.js +151 -0
- package/dist/svelte/components/RectangularCoordinates.svelte.d.ts +19 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +15134 -14523
- package/dist/svelte/utils/generatePresetCode.js +12 -0
- package/dist/vue/components/RectangularCoordinates.vue.d.ts +57 -0
- package/dist/vue/components/RectangularCoordinates.vue.d.ts.map +1 -0
- package/dist/vue/{generatePresetCode-B6Ks_W3s.js → generatePresetCode-T78GxN5X.js} +12 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +15219 -14598
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +1 -1
- package/package.json +6 -1
- package/dist/core/Bulge-Ceythf-i.js +0 -99
- package/dist/core/FilmGrain-BAZORehh.js +0 -27
- package/dist/core/FloatingParticles-7wvOBUbD.js +0 -158
- package/dist/core/GlassTiles-C0y_PWTa.js +0 -48
- package/dist/core/GridDistortion-CuxRQdzs.js +0 -137
- package/dist/core/Liquify-rmJGJAdt.js +0 -126
- package/dist/core/Pixelate-BIANS3t9.js +0 -34
- package/dist/core/edges-Cj8yVYgz.js +0 -10
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ComponentDefinition } from '../../types';
|
|
2
|
+
|
|
3
|
+
export interface ComponentProps {
|
|
4
|
+
/**
|
|
5
|
+
* The center point for rectangular coordinate conversion
|
|
6
|
+
*
|
|
7
|
+
* Accepts `{ x, y }` objects with values from 0 to 1, or CSS positions like `top center`.
|
|
8
|
+
* @default {"x":0.5,"y":0.5}
|
|
9
|
+
*/
|
|
10
|
+
center: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
} | string;
|
|
14
|
+
/**
|
|
15
|
+
* Scale factor for the rectangular output
|
|
16
|
+
*
|
|
17
|
+
* Accepts a number between 0.1 and 3.
|
|
18
|
+
* @default 1
|
|
19
|
+
*/
|
|
20
|
+
scale: number;
|
|
21
|
+
/**
|
|
22
|
+
* Blends between original UVs (0) and rectangular coordinates (1)
|
|
23
|
+
*
|
|
24
|
+
* Accepts a number between 0 and 1.
|
|
25
|
+
* @default 1
|
|
26
|
+
*/
|
|
27
|
+
intensity: number;
|
|
28
|
+
/**
|
|
29
|
+
* How to handle edges when distortion pushes content out of bounds
|
|
30
|
+
*
|
|
31
|
+
* Accepts one of: `"stretch"`, `"transparent"`, `"mirror"`, `"wrap"`.
|
|
32
|
+
* @default "transparent"
|
|
33
|
+
*/
|
|
34
|
+
edges: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const componentDefinition: ComponentDefinition<ComponentProps>;
|
|
37
|
+
export default componentDefinition;
|
|
38
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/RectangularCoordinates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAwC,MAAM,iBAAiB,CAAA;AAO1F,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,MAAM,CAAA;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CA+InE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Ripples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAC,MAAM,qCAAqC,CAAA;AAGrF,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Ripples/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAC,MAAM,qCAAqC,CAAA;AAGrF,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAsGnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../time-
|
|
3
|
-
import "../../transformations-
|
|
4
|
-
import { n as e, t as m } from "../../Ripples-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../time-5uQ65blS.js";
|
|
3
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
4
|
+
import { n as e, t as m } from "../../Ripples-CndvRX-N.js";
|
|
5
5
|
export {
|
|
6
6
|
e as componentDefinition,
|
|
7
7
|
m as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
2
|
import "../../TSLBase-BFMvTOak.js";
|
|
3
3
|
import "../../ColorAdjustment-CKwpE_4M.js";
|
|
4
|
-
import { n as r, t as m } from "../../Saturation-
|
|
4
|
+
import { n as r, t as m } from "../../Saturation-C6u9sNkr.js";
|
|
5
5
|
export {
|
|
6
6
|
r as componentDefinition,
|
|
7
7
|
m as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/SimplexNoise/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAOvE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/SimplexNoise/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAOvE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CA0EnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../time-
|
|
3
|
-
import "../../transformations-
|
|
4
|
-
import { n as m, t as p } from "../../SimplexNoise-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../time-5uQ65blS.js";
|
|
3
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
4
|
+
import { n as m, t as p } from "../../SimplexNoise-BH0ZZzP4.js";
|
|
5
5
|
export {
|
|
6
6
|
m as componentDefinition,
|
|
7
7
|
p as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/SineWave/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAC,MAAM,qCAAqC,CAAA;AAErG,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3C,QAAQ,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IACjD,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/SineWave/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAC,MAAM,qCAAqC,CAAA;AAErG,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3C,QAAQ,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IACjD,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAqJnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as i, t as a } from "../../SineWave-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
3
|
+
import { n as i, t as a } from "../../SineWave-DBH8MraQ.js";
|
|
4
4
|
export {
|
|
5
5
|
i as componentDefinition,
|
|
6
6
|
a as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/SolidColor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAKvE,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/SolidColor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAKvE,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAgBnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as r, t as a } from "../../SolidColor-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
3
|
+
import { n as r, t as a } from "../../SolidColor-DR665qss.js";
|
|
4
4
|
export {
|
|
5
5
|
r as componentDefinition,
|
|
6
6
|
a as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Spiral/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAyC,MAAM,qCAAqC,CAAA;AAG7H,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Spiral/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAC,cAAc,EAAE,iBAAiB,EAAyC,MAAM,qCAAqC,CAAA;AAG7H,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,MAAM,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CA2InE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as r, t as a } from "../../Spiral
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
3
|
+
import "../../colorMixing-DPZ-Td4U.js";
|
|
4
|
+
import { n as r, t as a } from "../../Spiral--7KUy0u3.js";
|
|
5
5
|
export {
|
|
6
6
|
r as componentDefinition,
|
|
7
7
|
a as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Strands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAiB,iBAAiB,EAAC,MAAM,qCAAqC,CAAA;AAGrF,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC9C,GAAG,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;CAC/C;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Strands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAIvE,OAAO,EAAiB,iBAAiB,EAAC,MAAM,qCAAqC,CAAA;AAGrF,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;IACjB,KAAK,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;IAC9C,GAAG,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;CAC/C;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAmQnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../time-
|
|
3
|
-
import "../../transformations-
|
|
4
|
-
import { n as a, t as m } from "../../Strands-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../time-5uQ65blS.js";
|
|
3
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
4
|
+
import { n as a, t as m } from "../../Strands-Bi1Is8_o.js";
|
|
5
5
|
export {
|
|
6
6
|
a as componentDefinition,
|
|
7
7
|
m as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Swirl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAQvE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Swirl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAQvE,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAoNnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../time-
|
|
3
|
-
import "../../transformations-
|
|
4
|
-
import "../../colorMixing-
|
|
5
|
-
import { n as p, t as a } from "../../Swirl-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../time-5uQ65blS.js";
|
|
3
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
4
|
+
import "../../colorMixing-DPZ-Td4U.js";
|
|
5
|
+
import { n as p, t as a } from "../../Swirl-DuYM23jG.js";
|
|
6
6
|
export {
|
|
7
7
|
p as componentDefinition,
|
|
8
8
|
a as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as a, t as e } from "../../TiltShift-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
3
|
+
import { n as a, t as e } from "../../TiltShift-BUvZWBsh.js";
|
|
4
4
|
export {
|
|
5
5
|
a as componentDefinition,
|
|
6
6
|
e as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import "../../colorMixing-
|
|
4
|
-
import { n as e, t as m } from "../../Tritone-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
3
|
+
import "../../colorMixing-DPZ-Td4U.js";
|
|
4
|
+
import { n as e, t as m } from "../../Tritone-CKifp6Ob.js";
|
|
5
5
|
export {
|
|
6
6
|
e as componentDefinition,
|
|
7
7
|
m as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Twirl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Twirl/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAwC,MAAM,iBAAiB,CAAA;AAO1F,MAAM,WAAW,cAAc;IAC3B,MAAM,EAAE;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,MAAM,CAAA;IACvC,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAgInE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../edges-
|
|
3
|
-
import "../../transformations-
|
|
4
|
-
import { n as m, t as p } from "../../Twirl-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../edges-B-tVdqcI.js";
|
|
3
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
4
|
+
import { n as m, t as p } from "../../Twirl-Ztlb9x_h.js";
|
|
5
5
|
export {
|
|
6
6
|
m as componentDefinition,
|
|
7
7
|
p as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
2
|
import "../../TSLBase-BFMvTOak.js";
|
|
3
3
|
import "../../ColorAdjustment-CKwpE_4M.js";
|
|
4
|
-
import { n as a, t as e } from "../../Vibrance-
|
|
4
|
+
import { n as a, t as e } from "../../Vibrance-B7EsDw6e.js";
|
|
5
5
|
export {
|
|
6
6
|
a as componentDefinition,
|
|
7
7
|
e as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/WaveDistortion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/WaveDistortion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAwC,MAAM,iBAAiB,CAAA;AAO1F,MAAM,WAAW,cAAc;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CA0QnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../edges-
|
|
3
|
-
import "../../
|
|
4
|
-
import "../../
|
|
5
|
-
import { n as p, t as a } from "../../WaveDistortion-gecgVpvO.js";
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../edges-B-tVdqcI.js";
|
|
3
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
4
|
+
import { n as a, t as e } from "../../WaveDistortion-HCnk54tD.js";
|
|
6
5
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
a as componentDefinition,
|
|
7
|
+
e as default
|
|
9
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../three.tsl-
|
|
2
|
-
import "../../transformations-
|
|
3
|
-
import { n as m, t as r } from "../../ZoomBlur-
|
|
1
|
+
import "../../three.tsl-BqgDcRt9.js";
|
|
2
|
+
import "../../transformations-DBjTkQ5b.js";
|
|
3
|
+
import { n as m, t as r } from "../../ZoomBlur-Ck6M9A2W.js";
|
|
4
4
|
export {
|
|
5
5
|
m as componentDefinition,
|
|
6
6
|
r as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../src/telemetry/collector.ts"],"names":[],"mappings":"AAKA,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,YAAY,CAAyB;IAC7C,OAAO,CAAC,cAAc,CAAsB;IAC5C,OAAO,CAAC,OAAO,CAAiB;gBAEpB,QAAQ,EAAE,GAAG;IAKlB,IAAI,IAAI,IAAI;IAQb,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../src/telemetry/collector.ts"],"names":[],"mappings":"AAKA,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,SAAS,CAAQ;IACzB,OAAO,CAAC,YAAY,CAAyB;IAC7C,OAAO,CAAC,cAAc,CAAsB;IAC5C,OAAO,CAAC,OAAO,CAAiB;gBAEpB,QAAQ,EAAE,GAAG;IAKlB,IAAI,IAAI,IAAI;IAQb,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IA8C5B,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,aAAa;IAiBrB,OAAO,CAAC,oBAAoB;IA0C5B,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,iBAAiB;YAwBX,aAAa;IAqB3B,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,eAAe;IAavB,OAAO,CAAC,mBAAmB;CAQ5B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
samplingRate: 0.
|
|
1
|
+
const s = {
|
|
2
|
+
samplingRate: 0.05,
|
|
3
3
|
collectionDuration: 1e4,
|
|
4
4
|
warmupDuration: 1e3,
|
|
5
5
|
sampleInterval: 100,
|
|
6
6
|
apiEndpoint: "https://shaders.com/api/telemetry"
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function p() {
|
|
9
9
|
return typeof window > "u" || typeof navigator > "u" ? {
|
|
10
10
|
domain: "unknown",
|
|
11
11
|
url: "unknown",
|
|
@@ -28,7 +28,7 @@ function h() {
|
|
|
28
28
|
locale: navigator.language
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var h = class {
|
|
32
32
|
renderer;
|
|
33
33
|
sessionId;
|
|
34
34
|
frameSamples = [];
|
|
@@ -42,7 +42,7 @@ var p = class {
|
|
|
42
42
|
}
|
|
43
43
|
async start() {
|
|
44
44
|
try {
|
|
45
|
-
if (await this.sleep(
|
|
45
|
+
if (await this.sleep(s.warmupDuration), this.stopped || (this.sampleInterval = setInterval(() => {
|
|
46
46
|
if (!this.stopped)
|
|
47
47
|
try {
|
|
48
48
|
const e = this.renderer.getPerformanceStats();
|
|
@@ -50,11 +50,11 @@ var p = class {
|
|
|
50
50
|
} catch (e) {
|
|
51
51
|
console.error("Telemetry sampling error:", e);
|
|
52
52
|
}
|
|
53
|
-
},
|
|
54
|
-
if (this.sampleInterval && (clearInterval(this.sampleInterval), this.sampleInterval = null), !this.stopped) {
|
|
53
|
+
}, s.sampleInterval), await this.sleep(s.collectionDuration - s.warmupDuration), this.stopped)) return;
|
|
54
|
+
if (this.sampleInterval && (clearInterval(this.sampleInterval), this.sampleInterval = null), !this.stopped && this.frameSamples.length >= 10) {
|
|
55
55
|
const e = this.aggregateData();
|
|
56
56
|
await this.sendTelemetry(e);
|
|
57
|
-
}
|
|
57
|
+
} else this.frameSamples.length < 10 && console.log("[Telemetry] Insufficient samples collected, skipping send");
|
|
58
58
|
} catch (e) {
|
|
59
59
|
console.error("Telemetry collection error:", e);
|
|
60
60
|
}
|
|
@@ -63,11 +63,11 @@ var p = class {
|
|
|
63
63
|
return new Promise((t) => setTimeout(t, e));
|
|
64
64
|
}
|
|
65
65
|
aggregateData() {
|
|
66
|
-
const e = this.aggregatePerformance(), t = this.detectRendererType(), n = this.extractComponents(), r =
|
|
66
|
+
const e = this.aggregatePerformance(), t = this.detectRendererType(), n = this.extractComponents(), r = p();
|
|
67
67
|
return {
|
|
68
68
|
sessionId: this.sessionId,
|
|
69
69
|
timestamp: Date.now(),
|
|
70
|
-
collectionDuration:
|
|
70
|
+
collectionDuration: s.collectionDuration,
|
|
71
71
|
performance: e,
|
|
72
72
|
renderer: t,
|
|
73
73
|
components: n,
|
|
@@ -86,16 +86,16 @@ var p = class {
|
|
|
86
86
|
jankPercent: 0,
|
|
87
87
|
budgetUsed: 0
|
|
88
88
|
};
|
|
89
|
-
const e = this.frameSamples.map((a) => a.avgFrameTime), t = this.frameSamples.map((a) => a.jankPercent), n = this.frameSamples.map((a) => a.budgetUsed), r = this.frameSamples.map((a) => a.fps),
|
|
89
|
+
const e = this.frameSamples.map((a) => a.avgFrameTime), t = this.frameSamples.map((a) => a.jankPercent), n = this.frameSamples.map((a) => a.budgetUsed), r = this.frameSamples.map((a) => a.fps), o = this.calculateMedian(r), i = this.calculateMean(e), l = Math.min(...e), c = Math.max(...e), m = this.calculatePercentile(e, 99), d = this.calculateMean(t), u = this.calculateMean(n);
|
|
90
90
|
return {
|
|
91
|
-
fps: Math.round(
|
|
91
|
+
fps: Math.round(o * 10) / 10,
|
|
92
92
|
frameTime: {
|
|
93
93
|
avg: Math.round(i * 10) / 10,
|
|
94
94
|
min: Math.round(l * 10) / 10,
|
|
95
95
|
max: Math.round(c * 10) / 10,
|
|
96
|
-
p99: Math.round(
|
|
96
|
+
p99: Math.round(m * 10) / 10
|
|
97
97
|
},
|
|
98
|
-
jankPercent: Math.round(
|
|
98
|
+
jankPercent: Math.round(d * 10) / 10,
|
|
99
99
|
budgetUsed: Math.round(u * 10) / 10
|
|
100
100
|
};
|
|
101
101
|
}
|
|
@@ -123,7 +123,7 @@ var p = class {
|
|
|
123
123
|
}
|
|
124
124
|
async sendTelemetry(e) {
|
|
125
125
|
try {
|
|
126
|
-
const t = await fetch(
|
|
126
|
+
const t = await fetch(s.apiEndpoint, {
|
|
127
127
|
method: "POST",
|
|
128
128
|
headers: { "Content-Type": "application/json" },
|
|
129
129
|
body: JSON.stringify(e)
|
|
@@ -138,17 +138,17 @@ var p = class {
|
|
|
138
138
|
}
|
|
139
139
|
calculateMedian(e) {
|
|
140
140
|
if (e.length === 0) return 0;
|
|
141
|
-
const t = [...e].sort((r,
|
|
141
|
+
const t = [...e].sort((r, o) => r - o), n = Math.floor(t.length / 2);
|
|
142
142
|
return t.length % 2 === 0 ? (t[n - 1] + t[n]) / 2 : t[n];
|
|
143
143
|
}
|
|
144
144
|
calculatePercentile(e, t) {
|
|
145
145
|
if (e.length === 0) return 0;
|
|
146
|
-
const n = [...e].sort((
|
|
146
|
+
const n = [...e].sort((o, i) => o - i), r = Math.ceil(t / 100 * n.length) - 1;
|
|
147
147
|
return n[Math.max(0, r)];
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
150
|
function f() {
|
|
151
|
-
return typeof window < "u" && window.location?.search?.includes("telemetry=true") ? !0 : Math.random() <
|
|
151
|
+
return typeof window < "u" && window.location?.search?.includes("telemetry=true") ? !0 : Math.random() < s.samplingRate;
|
|
152
152
|
}
|
|
153
153
|
function g() {
|
|
154
154
|
if (typeof window > "u" || !window.location) return !1;
|
|
@@ -156,7 +156,7 @@ function g() {
|
|
|
156
156
|
return !e.includes("shaders.com") && e !== "localhost" && e !== "127.0.0.1";
|
|
157
157
|
}
|
|
158
158
|
export {
|
|
159
|
-
|
|
159
|
+
h as TelemetryCollector,
|
|
160
160
|
g as isExternalUser,
|
|
161
161
|
f as shouldCollectTelemetry
|
|
162
162
|
};
|
|
@@ -43373,27 +43373,28 @@ var<${s}> ${e} : ${n};`;
|
|
|
43373
43373
|
xO(), oC = f.BRDF_GGX, lC = f.BRDF_Lambert, uC = f.BasicPointShadowFilter, cC = f.BasicShadowFilter, hC = f.Break, dC = f.Const, pC = f.Continue, fC = f.DFGApprox, mC = f.D_GGX, gC = f.Discard, yC = f.EPSILON, xC = f.F_Schlick, bC = f.Fn, _C = f.INFINITY, TC = f.If, vC = f.Loop, SC = f.NodeAccess, NC = f.NodeShaderStage, MC = f.NodeType, wC = f.NodeUpdateType, AC = f.PCFShadowFilter, RC = f.PCFSoftShadowFilter, CC = f.PI, EC = f.PI2, BC = f.TWO_PI, FC = f.HALF_PI, PC = f.PointShadowFilter, LC = f.Return, IC = f.Schlick_to_F0, DC = f.ScriptableNodeResources, UC = f.ShaderNode, VC = f.Stack, OC = f.Switch, GC = f.TBNViewMatrix, zC = f.VSMShadowFilter, kC = f.V_GGX_SmithCorrelated, $C = f.Var, WC = f.VarIntent, qC = f.abs, jC = f.acesFilmicToneMapping, HC = f.acos, XC = f.add, YC = f.addMethodChaining, KC = f.addNodeElement, QC = f.agxToneMapping, ZC = f.all, JC = f.alphaT, e3 = f.and, t3 = f.anisotropy, s3 = f.anisotropyB, i3 = f.anisotropyT, r3 = f.any, n3 = f.append, a3 = f.array, o3 = f.arrayBuffer, l3 = f.asin, u3 = f.assign, c3 = f.atan, h3 = f.atan2, d3 = f.atomicAdd, p3 = f.atomicAnd, f3 = f.atomicFunc, m3 = f.atomicLoad, g3 = f.atomicMax, y3 = f.atomicMin, x3 = f.atomicOr, b3 = f.atomicStore, _3 = f.atomicSub, T3 = f.atomicXor, v3 = f.attenuationColor, S3 = f.attenuationDistance, N3 = f.attribute, M3 = f.attributeArray, w3 = f.backgroundBlurriness, A3 = f.backgroundIntensity, R3 = f.backgroundRotation, C3 = f.batch, E3 = f.bentNormalView, B3 = f.billboarding, F3 = f.bitAnd, P3 = f.bitNot, L3 = f.bitOr, I3 = f.bitXor, D3 = f.bitangentGeometry, U3 = f.bitangentLocal, V3 = f.bitangentView, O3 = f.bitangentWorld, G3 = f.bitcast, z3 = f.blendBurn, k3 = f.blendColor, $3 = f.blendDodge, W3 = f.blendOverlay, q3 = f.blendScreen, j3 = f.blur, H3 = f.bool, X3 = f.buffer, Y3 = f.bufferAttribute, K3 = f.bumpMap, Q3 = f.burn, Z3 = f.builtin, J3 = f.bvec2, e2 = f.bvec3, t2 = f.bvec4, s2 = f.bypass, i2 = f.cache, r2 = f.call, n2 = f.cameraFar, a2 = f.cameraIndex, o2 = f.cameraNear, l2 = f.cameraNormalMatrix, u2 = f.cameraPosition, c2 = f.cameraProjectionMatrix, h2 = f.cameraProjectionMatrixInverse, d2 = f.cameraViewMatrix, p2 = f.cameraViewport, f2 = f.cameraWorldMatrix, m2 = f.cbrt, g2 = f.cdl, y2 = f.ceil, x2 = f.checker, b2 = f.cineonToneMapping, _2 = f.clamp, T2 = f.clearcoat, v2 = f.clearcoatNormalView, S2 = f.clearcoatRoughness, N2 = f.code, M2 = f.color, w2 = f.colorSpaceToWorking, A2 = f.colorToDirection, R2 = f.compute, C2 = f.computeKernel, E2 = f.computeSkinning, B2 = f.context, F2 = f.convert, P2 = f.convertColorSpace, L2 = f.convertToTexture, I2 = f.cos, D2 = f.cross, U2 = f.cubeTexture, V2 = f.cubeTextureBase, O2 = f.cubeToUV, G2 = f.dFdx, z2 = f.dFdy, k2 = f.dashSize, $2 = f.debug, W2 = f.decrement, q2 = f.decrementBefore, j2 = f.defaultBuildStages, H2 = f.defaultShaderStages, X2 = f.defined, Y2 = f.degrees, K2 = f.deltaTime, Q2 = f.densityFog, Z2 = f.densityFogFactor, J2 = f.depth, eE = f.depthPass, tE = f.determinant, sE = f.difference, iE = f.diffuseColor, rE = f.directPointLight, nE = f.directionToColor, aE = f.directionToFaceDirection, oE = f.dispersion, lE = f.distance, uE = f.div, cE = f.dodge, hE = f.dot, dE = f.drawIndex, pE = f.dynamicBufferAttribute, fE = f.element, mE = f.emissive, gE = f.equal, yE = f.equals, xE = f.equirectUV, bE = f.exp, _E = f.exp2, TE = f.expression, vE = f.faceDirection, SE = f.faceForward, NE = f.faceforward, ME = f.float, wE = f.floatBitsToInt, AE = f.floatBitsToUint, RE = f.floor, CE = f.fog, EE = f.fract, BE = f.frameGroup, FE = f.frameId, PE = f.frontFacing, LE = f.fwidth, IE = f.gain, DE = f.gapSize, UE = f.getConstNodeType, VE = f.getCurrentStack, OE = f.getDirection, GE = f.getDistanceAttenuation, zE = f.getGeometryRoughness, kE = f.getNormalFromDepth, $E = f.interleavedGradientNoise, WE = f.getParallaxCorrectNormal, qE = f.getRoughness, jE = f.getScreenPosition, HE = f.getShIrradianceAt, XE = f.getShadowMaterial, YE = f.getShadowRenderObjectFunction, KE = f.getTextureIndex, QE = f.getViewPosition, ZE = f.globalId, JE = f.glsl, eB = f.glslFn, tB = f.grayscale, sB = f.greaterThan, iB = f.greaterThanEqual, rB = f.hash, nB = f.highpModelNormalViewMatrix, aB = f.highpModelViewMatrix, oB = f.hue, lB = f.increment, uB = f.incrementBefore, cB = f.instance, hB = f.instanceIndex, dB = f.instancedArray, pB = f.instancedBufferAttribute, fB = f.instancedDynamicBufferAttribute, mB = f.instancedMesh, gB = f.int, yB = f.intBitsToFloat, xB = f.inverse, bB = f.inverseSqrt, _B = f.inversesqrt, TB = f.invocationLocalIndex, vB = f.invocationSubgroupIndex, SB = f.ior, NB = f.iridescence, MB = f.iridescenceIOR, wB = f.iridescenceThickness, AB = f.ivec2, RB = f.ivec3, CB = f.ivec4, EB = f.js, BB = f.label, FB = f.length, PB = f.lengthSq, LB = f.lessThan, IB = f.lessThanEqual, DB = f.lightPosition, UB = f.lightProjectionUV, VB = f.lightShadowMatrix, OB = f.lightTargetDirection, GB = f.lightTargetPosition, zB = f.lightViewPosition, kB = f.lightingContext, $B = f.lights, WB = f.linearDepth, qB = f.linearToneMapping, jB = f.localId, HB = f.log, XB = f.log2, YB = f.logarithmicDepthToViewZ, KB = f.luminance, QB = f.mat2, ZB = f.mat3, JB = f.mat4, e4 = f.matcapUV, t4 = f.materialAO, s4 = f.materialAlphaTest, i4 = f.materialAnisotropy, r4 = f.materialAnisotropyVector, n4 = f.materialAttenuationColor, a4 = f.materialAttenuationDistance, o4 = f.materialClearcoat, l4 = f.materialClearcoatNormal, u4 = f.materialClearcoatRoughness, c4 = f.materialColor, h4 = f.materialDispersion, d4 = f.materialEmissive, p4 = f.materialEnvIntensity, f4 = f.materialEnvRotation, m4 = f.materialIOR, g4 = f.materialIridescence, y4 = f.materialIridescenceIOR, x4 = f.materialIridescenceThickness, b4 = f.materialLightMap, _4 = f.materialLineDashOffset, T4 = f.materialLineDashSize, v4 = f.materialLineGapSize, S4 = f.materialLineScale, N4 = f.materialLineWidth, M4 = f.materialMetalness, w4 = f.materialNormal, A4 = f.materialOpacity, R4 = f.materialPointSize, C4 = f.materialReference, E4 = f.materialReflectivity, B4 = f.materialRefractionRatio, F4 = f.materialRotation, P4 = f.materialRoughness, L4 = f.materialSheen, I4 = f.materialSheenRoughness, D4 = f.materialShininess, U4 = f.materialSpecular, V4 = f.materialSpecularColor, O4 = f.materialSpecularIntensity, G4 = f.materialSpecularStrength, z4 = f.materialThickness, k4 = f.materialTransmission, $4 = f.max, W4 = f.maxMipLevel, q4 = f.mediumpModelViewMatrix, j4 = f.metalness, H4 = f.min, X4 = f.mix, Y4 = f.mixElement, K4 = f.mod, Q4 = f.modInt, Z4 = f.modelDirection, J4 = f.modelNormalMatrix, eF = f.modelPosition, tF = f.modelRadius, sF = f.modelScale, iF = f.modelViewMatrix, rF = f.modelViewPosition, nF = f.modelViewProjection, aF = f.modelWorldMatrix, oF = f.modelWorldMatrixInverse, lF = f.morphReference, uF = f.mrt, cF = f.mul, hF = f.mx_aastep, dF = f.mx_add, pF = f.mx_atan2, fF = f.mx_cell_noise_float, mF = f.mx_contrast, gF = f.mx_divide, yF = f.mx_fractal_noise_float, xF = f.mx_fractal_noise_vec2, bF = f.mx_fractal_noise_vec3, _F = f.mx_fractal_noise_vec4, TF = f.mx_frame, vF = f.mx_heighttonormal, SF = f.mx_hsvtorgb, NF = f.mx_ifequal, MF = f.mx_ifgreater, wF = f.mx_ifgreatereq, AF = f.mx_invert, RF = f.mx_modulo, CF = f.mx_multiply, EF = f.mx_noise_float, BF = f.mx_noise_vec3, FF = f.mx_noise_vec4, PF = f.mx_place2d, LF = f.mx_power, IF = f.mx_ramp4, DF = f.mx_ramplr, UF = f.mx_ramptb, VF = f.mx_rgbtohsv, OF = f.mx_rotate2d, GF = f.mx_rotate3d, zF = f.mx_safepower, kF = f.mx_separate, $F = f.mx_splitlr, WF = f.mx_splittb, qF = f.mx_srgb_texture_to_lin_rec709, jF = f.mx_subtract, HF = f.mx_timer, XF = f.mx_transform_uv, YF = f.mx_unifiednoise2d, KF = f.mx_unifiednoise3d, QF = f.mx_worley_noise_float, ZF = f.mx_worley_noise_vec2, JF = f.mx_worley_noise_vec3, eP = f.negate, tP = f.neutralToneMapping, sP = f.nodeArray, iP = f.nodeImmutable, rP = f.nodeObject, nP = f.nodeObjectIntent, aP = f.nodeObjects, oP = f.nodeProxy, lP = f.nodeProxyIntent, uP = f.normalFlat, cP = f.normalGeometry, hP = f.normalLocal, dP = f.normalMap, pP = f.normalView, fP = f.normalViewGeometry, mP = f.normalWorld, gP = f.normalWorldGeometry, yP = f.normalize, xP = f.not, bP = f.notEqual, _P = f.numWorkgroups, TP = f.objectDirection, vP = f.objectGroup, SP = f.objectPosition, NP = f.objectRadius, MP = f.objectScale, wP = f.objectViewPosition, AP = f.objectWorldMatrix, RP = f.OnBeforeObjectUpdate, CP = f.OnBeforeMaterialUpdate, EP = f.OnObjectUpdate, BP = f.OnMaterialUpdate, FP = f.oneMinus, PP = f.or, LP = f.orthographicDepthToViewZ, IP = f.oscSawtooth, DP = f.oscSine, UP = f.oscSquare, VP = f.oscTriangle, OP = f.output, GP = f.outputStruct, zP = f.overlay, kP = f.overloadingFn, $P = f.parabola, WP = f.parallaxDirection, qP = f.parallaxUV, jP = f.parameter, HP = f.pass, XP = f.passTexture, YP = f.pcurve, KP = f.perspectiveDepthToViewZ, QP = f.pmremTexture, ZP = f.pointShadow, JP = f.pointUV, eL = f.pointWidth, tL = f.positionGeometry, sL = f.positionLocal, iL = f.positionPrevious, rL = f.positionView, nL = f.positionViewDirection, aL = f.positionWorld, oL = f.positionWorldDirection, lL = f.posterize, uL = f.pow, cL = f.pow2, hL = f.pow3, dL = f.pow4, pL = f.premultiplyAlpha, fL = f.property, mL = f.radians, gL = f.rand, yL = f.range, xL = f.rangeFog, bL = f.rangeFogFactor, _L = f.reciprocal, TL = f.reference, vL = f.referenceBuffer, SL = f.reflect, NL = f.reflectVector, ML = f.reflectView, wL = f.reflector, AL = f.refract, RL = f.refractVector, CL = f.refractView, EL = f.reinhardToneMapping, BL = f.remap, FL = f.remapClamp, PL = f.renderGroup, LL = f.renderOutput, IL = f.rendererReference, DL = f.rotate, UL = f.rotateUV, VL = f.roughness, OL = f.round, GL = f.rtt, zL = f.sRGBTransferEOTF, kL = f.sRGBTransferOETF, $L = f.sample, WL = f.sampler, qL = f.samplerComparison, jL = f.saturate, HL = f.saturation, XL = f.screen, YL = f.screenCoordinate, KL = f.screenDPR, QL = f.screenSize, ZL = f.screenUV, JL = f.scriptable, eI = f.scriptableValue, tI = f.select, sI = f.setCurrentStack, iI = f.setName, rI = f.shaderStages, nI = f.shadow, aI = f.shadowPositionWorld, oI = f.shapeCircle, lI = f.sharedUniformGroup, uI = f.sheen, cI = f.sheenRoughness, hI = f.shiftLeft, dI = f.shiftRight, pI = f.shininess, fI = f.sign, mI = f.sin, gI = f.sinc, yI = f.skinning, xI = f.smoothstep, bI = f.smoothstepElement, _I = f.specularColor, TI = f.specularF90, vI = f.spherizeUV, SI = f.split, NI = f.spritesheetUV, MI = f.sqrt, wI = f.stack, AI = f.step, RI = f.stepElement, CI = f.storage, EI = f.storageBarrier, BI = f.storageObject, FI = f.storageTexture, PI = f.string, LI = f.struct, II = f.sub, DI = f.subgroupAdd, UI = f.subgroupAll, VI = f.subgroupAnd, OI = f.subgroupAny, GI = f.subgroupBallot, zI = f.subgroupBroadcast, kI = f.subgroupBroadcastFirst, $I = f.subBuild, WI = f.subgroupElect, qI = f.subgroupExclusiveAdd, jI = f.subgroupExclusiveMul, HI = f.subgroupInclusiveAdd, XI = f.subgroupInclusiveMul, YI = f.subgroupIndex, KI = f.subgroupMax, QI = f.subgroupMin, ZI = f.subgroupMul, JI = f.subgroupOr, e5 = f.subgroupShuffle, t5 = f.subgroupShuffleDown, s5 = f.subgroupShuffleUp, i5 = f.subgroupShuffleXor, r5 = f.subgroupSize, n5 = f.subgroupXor, a5 = f.tan, o5 = f.tangentGeometry, l5 = f.tangentLocal, u5 = f.tangentView, c5 = f.tangentWorld, h5 = f.texture, d5 = f.texture3D, p5 = f.textureBarrier, f5 = f.textureBicubic, m5 = f.textureBicubicLevel, g5 = f.textureCubeUV, y5 = f.textureLoad, x5 = f.textureSize, b5 = f.textureLevel, _5 = f.textureStore, T5 = f.thickness, v5 = f.time, S5 = f.toneMapping, N5 = f.toneMappingExposure, M5 = f.toonOutlinePass, w5 = f.transformDirection, A5 = f.transformNormal, R5 = f.transformNormalToView, C5 = f.transformedClearcoatNormalView, E5 = f.transformedNormalView, B5 = f.transformedNormalWorld, F5 = f.transmission, P5 = f.transpose, L5 = f.triNoise3D, I5 = f.triplanarTexture, D5 = f.triplanarTextures, U5 = f.trunc, V5 = f.uint, O5 = f.uintBitsToFloat, G5 = f.uniform, z5 = f.uniformArray, k5 = f.uniformCubeTexture, $5 = f.uniformGroup, W5 = f.uniformFlow, q5 = f.uniformTexture, j5 = f.unpremultiplyAlpha, H5 = f.userData, X5 = f.uv, Y5 = f.uvec2, K5 = f.uvec3, Q5 = f.uvec4, Z5 = f.varying, J5 = f.varyingProperty, eD = f.vec2, tD = f.vec3, sD = f.vec4, iD = f.vectorComponents, rD = f.velocity, nD = f.vertexColor, aD = f.vertexIndex, oD = f.vertexStage, lD = f.vibrance, uD = f.viewZToLogarithmicDepth, cD = f.viewZToOrthographicDepth, hD = f.viewZToPerspectiveDepth, dD = f.viewport, pD = f.viewportCoordinate, fD = f.viewportDepthTexture, mD = f.viewportLinearDepth, gD = f.viewportMipTexture, yD = f.viewportResolution, xD = f.viewportSafeUV, bD = f.viewportSharedTexture, _D = f.viewportSize, TD = f.viewportTexture, vD = f.viewportUV, SD = f.wgsl, ND = f.wgslFn, MD = f.workgroupArray, wD = f.workgroupBarrier, AD = f.workgroupId, RD = f.workingToColorSpace, CD = f.xor;
|
|
43374
43374
|
}) });
|
|
43375
43375
|
export {
|
|
43376
|
-
|
|
43377
|
-
|
|
43376
|
+
G5 as A,
|
|
43377
|
+
ch as B,
|
|
43378
43378
|
tI as C,
|
|
43379
43379
|
II as D,
|
|
43380
43380
|
AI as E,
|
|
43381
|
-
|
|
43382
|
-
|
|
43383
|
-
|
|
43384
|
-
|
|
43385
|
-
|
|
43386
|
-
|
|
43387
|
-
|
|
43388
|
-
|
|
43389
|
-
|
|
43390
|
-
|
|
43391
|
-
|
|
43381
|
+
N0 as F,
|
|
43382
|
+
AV as G,
|
|
43383
|
+
Yt as H,
|
|
43384
|
+
yO as I,
|
|
43385
|
+
bO as J,
|
|
43386
|
+
Zy as K,
|
|
43387
|
+
xO as L,
|
|
43388
|
+
tD as M,
|
|
43389
|
+
sD as N,
|
|
43390
|
+
h5 as O,
|
|
43391
|
+
_D as P,
|
|
43392
|
+
St as R,
|
|
43392
43393
|
ZL as S,
|
|
43393
43394
|
MI as T,
|
|
43394
|
-
|
|
43395
|
-
|
|
43396
|
-
|
|
43395
|
+
Yc as U,
|
|
43396
|
+
mR as V,
|
|
43397
|
+
Bt as W,
|
|
43397
43398
|
X4 as _,
|
|
43398
43399
|
_2 as a,
|
|
43399
43400
|
PP as b,
|
|
@@ -43403,14 +43404,14 @@ export {
|
|
|
43403
43404
|
H4 as g,
|
|
43404
43405
|
$4 as h,
|
|
43405
43406
|
c3 as i,
|
|
43406
|
-
|
|
43407
|
-
|
|
43407
|
+
eD as j,
|
|
43408
|
+
TO as k,
|
|
43408
43409
|
hE as l,
|
|
43409
43410
|
vO as m,
|
|
43410
43411
|
XC as n,
|
|
43411
43412
|
L2 as o,
|
|
43412
43413
|
sB as p,
|
|
43413
|
-
|
|
43414
|
+
PD as q,
|
|
43414
43415
|
r3 as r,
|
|
43415
43416
|
I2 as s,
|
|
43416
43417
|
qC as t,
|
|
@@ -43419,5 +43420,5 @@ export {
|
|
|
43419
43420
|
mI as w,
|
|
43420
43421
|
uL as x,
|
|
43421
43422
|
EF as y,
|
|
43422
|
-
|
|
43423
|
+
Xs as z
|
|
43423
43424
|
};
|
package/dist/core/types.d.ts
CHANGED
|
@@ -161,6 +161,25 @@ export interface ResizeCallbackParams {
|
|
|
161
161
|
* Function that is called when the canvas resizes
|
|
162
162
|
*/
|
|
163
163
|
export type ResizeCallback = (params: ResizeCallbackParams) => void;
|
|
164
|
+
/**
|
|
165
|
+
* Parameters for UV transformation function.
|
|
166
|
+
* Used by shaders that can have their UV transforms composed
|
|
167
|
+
* without intermediate render-to-texture boundaries.
|
|
168
|
+
*/
|
|
169
|
+
export interface UVTransformParams {
|
|
170
|
+
/**
|
|
171
|
+
* Input UV coordinates (may already be pre-transformed by inner shaders)
|
|
172
|
+
*/
|
|
173
|
+
uv: Node;
|
|
174
|
+
/**
|
|
175
|
+
* The component's uniforms
|
|
176
|
+
*/
|
|
177
|
+
uniforms: UniformsMap;
|
|
178
|
+
/**
|
|
179
|
+
* Viewport dimensions as a TSL node for aspect ratio calculations
|
|
180
|
+
*/
|
|
181
|
+
viewportSize: Node;
|
|
182
|
+
}
|
|
164
183
|
/**
|
|
165
184
|
* Parameters for fragment node function
|
|
166
185
|
*/
|
|
@@ -212,6 +231,25 @@ export interface FragmentNodeParams {
|
|
|
212
231
|
* This is useful for manual render target management in RTT effects
|
|
213
232
|
*/
|
|
214
233
|
renderer: any;
|
|
234
|
+
/**
|
|
235
|
+
* UV context passed down from parent distortions.
|
|
236
|
+
*
|
|
237
|
+
* When a generator is rendered as the terminus of a UV-composable distortion chain,
|
|
238
|
+
* this contains the pre-composed UV coordinates from all ancestor distortions.
|
|
239
|
+
*
|
|
240
|
+
* Generators that set `acceptsUVContext: true` should use this instead of `screenUV`
|
|
241
|
+
* when provided, enabling infinitely sharp distortion effects by computing pixels
|
|
242
|
+
* at their final distorted positions rather than sampling RTT content.
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* ```typescript
|
|
246
|
+
* fragmentNode: ({ uvContext }: FragmentNodeParams) => {
|
|
247
|
+
* const uv = uvContext ?? screenUV // Use composed UV if available
|
|
248
|
+
* // ... compute color based on uv
|
|
249
|
+
* }
|
|
250
|
+
* ```
|
|
251
|
+
*/
|
|
252
|
+
uvContext?: Node;
|
|
215
253
|
}
|
|
216
254
|
/**
|
|
217
255
|
* The definition of a component within the Shader library.
|
|
@@ -246,5 +284,48 @@ export interface ComponentDefinition<T extends ComponentProps = ComponentProps>
|
|
|
246
284
|
* A function that returns the Three TSL fragment node for this component.
|
|
247
285
|
*/
|
|
248
286
|
fragmentNode: (params: FragmentNodeParams) => Node;
|
|
287
|
+
/**
|
|
288
|
+
* Optional UV transformation function for composable distortion effects.
|
|
289
|
+
*
|
|
290
|
+
* When provided, indicates this shader performs a pure UV transformation that
|
|
291
|
+
* can be mathematically composed with other UV transforms without intermediate
|
|
292
|
+
* render-to-texture (RTT) boundaries.
|
|
293
|
+
*
|
|
294
|
+
* The renderer will detect chains of UV-composable shaders and compose their
|
|
295
|
+
* UV transformations, sampling the source content only once at the end of the chain.
|
|
296
|
+
* This eliminates viewport cropping issues that occur with intermediate RTT passes.
|
|
297
|
+
*
|
|
298
|
+
* When this function is defined:
|
|
299
|
+
* - The shader is considered "UV-composable"
|
|
300
|
+
* - Multiple consecutive UV transforms will be composed mathematically
|
|
301
|
+
* - `fragmentNode` is used as fallback when the chain breaks (non-UV effect encountered)
|
|
302
|
+
*
|
|
303
|
+
* @param params.uv - Input UV coordinates (may be pre-transformed by inner shaders)
|
|
304
|
+
* @param params.uniforms - Component uniforms
|
|
305
|
+
* @param params.viewportSize - Viewport dimensions for aspect ratio calculations
|
|
306
|
+
* @returns Transformed UV coordinates as a vec2 Node
|
|
307
|
+
*/
|
|
308
|
+
uvTransformNode?: (params: UVTransformParams) => Node;
|
|
309
|
+
/**
|
|
310
|
+
* Whether this shader accepts UV context from parent distortions.
|
|
311
|
+
*
|
|
312
|
+
* When true, the fragmentNode function should use `params.uvContext ?? screenUV`
|
|
313
|
+
* for UV-based calculations instead of directly using `screenUV`.
|
|
314
|
+
*
|
|
315
|
+
* This enables the "UV Context Propagation" optimization where generators compute
|
|
316
|
+
* pixels at distorted UV positions directly, producing infinitely sharp results
|
|
317
|
+
* without RTT interpolation blur.
|
|
318
|
+
*
|
|
319
|
+
* Set to true for:
|
|
320
|
+
* - Procedural generators (Checkerboard, Gradient, Noise, etc.)
|
|
321
|
+
* - Texture sources (ImageTexture, Video)
|
|
322
|
+
*
|
|
323
|
+
* Leave false/undefined for:
|
|
324
|
+
* - Effects that operate on child content (filters, blurs, etc.)
|
|
325
|
+
* - Effects that require specific UV relationships (masks, etc.)
|
|
326
|
+
*
|
|
327
|
+
* @default false
|
|
328
|
+
*/
|
|
329
|
+
acceptsUVContext?: boolean;
|
|
249
330
|
}
|
|
250
331
|
//# sourceMappingURL=types.d.ts.map
|