shaders 2.2.30 → 2.2.32
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/{Beam-DCaOPIk_.js → Beam-CbG4MkLo.js} +2 -3
- package/dist/core/{Blob-8YqXuE5v.js → Blob-C_fYRjJF.js} +2 -3
- package/dist/core/{Bulge-D9mLn8-p.js → Bulge-C8-_hIFp.js} +1 -20
- package/dist/core/{Checkerboard-DjrQsDvl.js → Checkerboard-D_H3XYbF.js} +2 -3
- package/dist/core/{Circle-BSAdYHYZ.js → Circle-DI0gXpyD.js} +2 -3
- package/dist/core/{DiffuseBlur-B-QHWSjt.js → DiffuseBlur-Cg7AsB3W.js} +1 -12
- package/dist/core/{DotGrid-BJyEY7YH.js → DotGrid-B2DXsjFE.js} +2 -3
- package/dist/core/{FilmGrain-osBGk_b9.js → FilmGrain-CY4ZO9UI.js} +2 -3
- package/dist/core/{FloatingParticles-Ct7GMVzZ.js → FloatingParticles-BduIDXKd.js} +2 -3
- package/dist/core/GlassTiles-BaAwsNxl.js +84 -0
- package/dist/core/{Godrays-fJIUiGke.js → Godrays-ChqiT2zn.js} +2 -3
- package/dist/core/{Grid-o_nFs0CE.js → Grid-DazyiX15.js} +2 -3
- package/dist/core/{GridDistortion-xuUXyMGP.js → GridDistortion-CYQUwuXw.js} +1 -1
- package/dist/core/{ImageTexture-D9OMwqAs.js → ImageTexture-D0xwHmkW.js} +2 -3
- package/dist/core/{LinearGradient-DN_FYXL2.js → LinearGradient-B6ySxWpU.js} +2 -3
- package/dist/core/{Liquify-Qm_y-apj.js → Liquify-yoKWSK0F.js} +1 -7
- package/dist/core/{Pixelate-_pyYeLRP.js → Pixelate-BmE_Zryn.js} +0 -4
- package/dist/core/{PolarCoordinates-DfjOpgDQ.js → PolarCoordinates-PLyS00-P.js} +1 -10
- package/dist/core/{RadialGradient-DGmfTA60.js → RadialGradient-pwKyDUBu.js} +2 -3
- package/dist/core/{RectangularCoordinates-TM8tkEBk.js → RectangularCoordinates-Dq2JrmOX.js} +1 -10
- package/dist/core/{Ripples-D60vIa8s.js → Ripples-Ot1rx8kL.js} +2 -3
- package/dist/core/{SimplexNoise-CI-FEJ6v.js → SimplexNoise-BfilWh05.js} +2 -3
- package/dist/core/{SineWave-CQIQ0oCt.js → SineWave-DRqL-jda.js} +2 -3
- package/dist/core/{SolidColor-CTN8J944.js → SolidColor-B62ZBRlK.js} +0 -1
- package/dist/core/{Spiral-DIzFj8Xi.js → Spiral-Cx7Z8gLc.js} +2 -3
- package/dist/core/{Strands-WwfH6CNO.js → Strands-C9FBVtDe.js} +2 -3
- package/dist/core/{Stretch-DxuMSLMk.js → Stretch-BCpOO3q6.js} +1 -20
- package/dist/core/Swirl-BfD35doJ.js +96 -0
- package/dist/core/{Twirl-DRomCc8u.js → Twirl-EJ3aS_lo.js} +1 -11
- package/dist/core/{WaveDistortion-Btn7OJ4m.js → WaveDistortion-BOWBSWEU.js} +1 -23
- package/dist/core/{edges-Djr_12SL.js → edges-Bd7GP4s2.js} +1 -10
- package/dist/core/index.js +107 -588
- package/dist/core/renderer.d.ts +0 -21
- package/dist/core/renderer.d.ts.map +1 -1
- package/dist/core/shaders/Beam/index.d.ts.map +1 -1
- package/dist/core/shaders/Beam/index.js +1 -1
- package/dist/core/shaders/Blob/index.d.ts.map +1 -1
- package/dist/core/shaders/Blob/index.js +1 -1
- package/dist/core/shaders/Bulge/index.d.ts.map +1 -1
- package/dist/core/shaders/Bulge/index.js +2 -2
- package/dist/core/shaders/Checkerboard/index.d.ts.map +1 -1
- package/dist/core/shaders/Checkerboard/index.js +1 -1
- package/dist/core/shaders/Circle/index.d.ts.map +1 -1
- package/dist/core/shaders/Circle/index.js +1 -1
- package/dist/core/shaders/DiffuseBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/DiffuseBlur/index.js +2 -2
- package/dist/core/shaders/DotGrid/index.d.ts.map +1 -1
- package/dist/core/shaders/DotGrid/index.js +1 -1
- package/dist/core/shaders/FilmGrain/index.d.ts.map +1 -1
- package/dist/core/shaders/FilmGrain/index.js +1 -1
- package/dist/core/shaders/FloatingParticles/index.d.ts.map +1 -1
- package/dist/core/shaders/FloatingParticles/index.js +1 -1
- package/dist/core/shaders/GlassTiles/index.d.ts +18 -4
- package/dist/core/shaders/GlassTiles/index.d.ts.map +1 -1
- package/dist/core/shaders/GlassTiles/index.js +1 -1
- package/dist/core/shaders/Godrays/index.d.ts.map +1 -1
- package/dist/core/shaders/Godrays/index.js +1 -1
- package/dist/core/shaders/Grid/index.d.ts.map +1 -1
- package/dist/core/shaders/Grid/index.js +1 -1
- package/dist/core/shaders/GridDistortion/index.js +2 -2
- package/dist/core/shaders/ImageTexture/index.d.ts.map +1 -1
- package/dist/core/shaders/ImageTexture/index.js +1 -1
- package/dist/core/shaders/LinearGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/LinearGradient/index.js +1 -1
- package/dist/core/shaders/Liquify/index.d.ts.map +1 -1
- package/dist/core/shaders/Liquify/index.js +2 -2
- package/dist/core/shaders/Pixelate/index.d.ts.map +1 -1
- package/dist/core/shaders/Pixelate/index.js +1 -1
- package/dist/core/shaders/PolarCoordinates/index.d.ts.map +1 -1
- package/dist/core/shaders/PolarCoordinates/index.js +2 -2
- package/dist/core/shaders/RadialGradient/index.d.ts.map +1 -1
- package/dist/core/shaders/RadialGradient/index.js +1 -1
- package/dist/core/shaders/RectangularCoordinates/index.d.ts.map +1 -1
- package/dist/core/shaders/RectangularCoordinates/index.js +2 -2
- package/dist/core/shaders/Ripples/index.d.ts.map +1 -1
- package/dist/core/shaders/Ripples/index.js +1 -1
- package/dist/core/shaders/SimplexNoise/index.d.ts.map +1 -1
- package/dist/core/shaders/SimplexNoise/index.js +1 -1
- package/dist/core/shaders/SineWave/index.d.ts.map +1 -1
- package/dist/core/shaders/SineWave/index.js +1 -1
- package/dist/core/shaders/SolidColor/index.d.ts.map +1 -1
- package/dist/core/shaders/SolidColor/index.js +1 -1
- package/dist/core/shaders/Spiral/index.d.ts.map +1 -1
- package/dist/core/shaders/Spiral/index.js +1 -1
- package/dist/core/shaders/Strands/index.d.ts.map +1 -1
- package/dist/core/shaders/Strands/index.js +1 -1
- package/dist/core/shaders/Stretch/index.d.ts.map +1 -1
- package/dist/core/shaders/Stretch/index.js +2 -2
- package/dist/core/shaders/Swirl/index.d.ts +1 -43
- package/dist/core/shaders/Swirl/index.d.ts.map +1 -1
- package/dist/core/shaders/Swirl/index.js +1 -1
- package/dist/core/shaders/Twirl/index.d.ts.map +1 -1
- package/dist/core/shaders/Twirl/index.js +2 -2
- package/dist/core/shaders/WaveDistortion/index.d.ts.map +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +2 -2
- package/dist/core/types.d.ts +0 -81
- package/dist/core/types.d.ts.map +1 -1
- package/dist/react/{generatePresetCode-CCibXbtZ.js → generatePresetCode-Ci4D5lDy.js} +41 -12
- package/dist/react/index.js +1 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +1 -1
- package/dist/react/utils/generatePresetCode.template.d.ts.map +1 -1
- package/dist/registry.js +60 -167
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +56 -10
- package/dist/solid/utils/generatePresetCode.template.d.ts.map +1 -1
- package/dist/svelte/{generatePresetCode-CymgoDq_.js → generatePresetCode-hILbcEw8.js} +41 -12
- package/dist/svelte/index.js +1 -1
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/{generatePresetCode-CRJmU8iF.js → generatePresetCode-DfkHaBG4.js} +36 -12
- package/dist/vue/index.js +5 -9
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +1 -1
- package/dist/vue/utils/generatePresetCode.template.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/core/GlassTiles-CA90XrNT.js +0 -67
- package/dist/core/Swirl-SrhhoVBs.js +0 -172
package/dist/core/types.d.ts
CHANGED
|
@@ -161,25 +161,6 @@ 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
|
-
}
|
|
183
164
|
/**
|
|
184
165
|
* Parameters for fragment node function
|
|
185
166
|
*/
|
|
@@ -231,25 +212,6 @@ export interface FragmentNodeParams {
|
|
|
231
212
|
* This is useful for manual render target management in RTT effects
|
|
232
213
|
*/
|
|
233
214
|
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;
|
|
253
215
|
}
|
|
254
216
|
/**
|
|
255
217
|
* The definition of a component within the Shader library.
|
|
@@ -288,48 +250,5 @@ export interface ComponentDefinition<T extends ComponentProps = ComponentProps>
|
|
|
288
250
|
* A function that returns the Three TSL fragment node for this component.
|
|
289
251
|
*/
|
|
290
252
|
fragmentNode: (params: FragmentNodeParams) => Node;
|
|
291
|
-
/**
|
|
292
|
-
* Optional UV transformation function for composable distortion effects.
|
|
293
|
-
*
|
|
294
|
-
* When provided, indicates this shader performs a pure UV transformation that
|
|
295
|
-
* can be mathematically composed with other UV transforms without intermediate
|
|
296
|
-
* render-to-texture (RTT) boundaries.
|
|
297
|
-
*
|
|
298
|
-
* The renderer will detect chains of UV-composable shaders and compose their
|
|
299
|
-
* UV transformations, sampling the source content only once at the end of the chain.
|
|
300
|
-
* This eliminates viewport cropping issues that occur with intermediate RTT passes.
|
|
301
|
-
*
|
|
302
|
-
* When this function is defined:
|
|
303
|
-
* - The shader is considered "UV-composable"
|
|
304
|
-
* - Multiple consecutive UV transforms will be composed mathematically
|
|
305
|
-
* - `fragmentNode` is used as fallback when the chain breaks (non-UV effect encountered)
|
|
306
|
-
*
|
|
307
|
-
* @param params.uv - Input UV coordinates (may be pre-transformed by inner shaders)
|
|
308
|
-
* @param params.uniforms - Component uniforms
|
|
309
|
-
* @param params.viewportSize - Viewport dimensions for aspect ratio calculations
|
|
310
|
-
* @returns Transformed UV coordinates as a vec2 Node
|
|
311
|
-
*/
|
|
312
|
-
uvTransformNode?: (params: UVTransformParams) => Node;
|
|
313
|
-
/**
|
|
314
|
-
* Whether this shader accepts UV context from parent distortions.
|
|
315
|
-
*
|
|
316
|
-
* When true, the fragmentNode function should use `params.uvContext ?? screenUV`
|
|
317
|
-
* for UV-based calculations instead of directly using `screenUV`.
|
|
318
|
-
*
|
|
319
|
-
* This enables the "UV Context Propagation" optimization where generators compute
|
|
320
|
-
* pixels at distorted UV positions directly, producing infinitely sharp results
|
|
321
|
-
* without RTT interpolation blur.
|
|
322
|
-
*
|
|
323
|
-
* Set to true for:
|
|
324
|
-
* - Procedural generators (Checkerboard, Gradient, Noise, etc.)
|
|
325
|
-
* - Texture sources (ImageTexture, Video)
|
|
326
|
-
*
|
|
327
|
-
* Leave false/undefined for:
|
|
328
|
-
* - Effects that operate on child content (filters, blurs, etc.)
|
|
329
|
-
* - Effects that require specific UV relationships (masks, etc.)
|
|
330
|
-
*
|
|
331
|
-
* @default false
|
|
332
|
-
*/
|
|
333
|
-
acceptsUVContext?: boolean;
|
|
334
253
|
}
|
|
335
254
|
//# sourceMappingURL=types.d.ts.map
|
package/dist/core/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,EAAC,IAAI,EAAC,MAAM,cAAc,CAAA;AACtC,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iCAAiC,CAAA;AAGpE,YAAY,EAAC,eAAe,EAAC,CAAA;AAE7B,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,GAAG,CAAA;IACZ,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,CAAA;CAClC;AAED;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,eAAe,GAAG,WAAW,GAAG,mBAAmB,CAAA;AAEpF;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,IAAI,EAAE,QAAQ,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,S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AK,IAAI,CAAA;IAE5C;;;;OAIG;IACH,MAAM,EAAE,iBAAiB,CAAA;IAEzB;;;OAGG;IACH,UAAU,EAAE;QACR,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;KACjB,CAAA;IAED;;;OAGG;IACH,QAAQ,EAAE,GAAG,CAAA;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc;IAE1E;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IAEvB;;OAEG;IACH,KAAK,EAAE;SACF,CAAC,IAAI,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KACnC,CAAA;IAED;;OAEG;IACH,YAAY,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAA;CACrD"}
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
var DEFAULT_TRANSFORM = {
|
|
2
|
+
offsetX: 0,
|
|
3
|
+
offsetY: 0,
|
|
4
|
+
rotation: 0,
|
|
5
|
+
scale: 1,
|
|
6
|
+
anchorX: .5,
|
|
7
|
+
anchorY: .5,
|
|
8
|
+
edges: "transparent"
|
|
9
|
+
};
|
|
10
|
+
function toObjectLiteral(obj) {
|
|
11
|
+
return `{ ${Object.entries(obj).map(([key, value]) => {
|
|
12
|
+
return `${key}: ${typeof value === "string" ? `"${value}"` : value}`;
|
|
13
|
+
}).join(", ")} }`;
|
|
14
|
+
}
|
|
1
15
|
var shaderMetadata = {
|
|
2
16
|
"AngularBlur": {
|
|
3
17
|
"opacity": 1,
|
|
@@ -194,8 +208,10 @@ var shaderMetadata = {
|
|
|
194
208
|
"GlassTiles": {
|
|
195
209
|
"opacity": 1,
|
|
196
210
|
"blendMode": "normal",
|
|
197
|
-
"intensity":
|
|
198
|
-
"tileCount":
|
|
211
|
+
"intensity": 2,
|
|
212
|
+
"tileCount": 20,
|
|
213
|
+
"rotation": 0,
|
|
214
|
+
"roundness": 0
|
|
199
215
|
},
|
|
200
216
|
"Glow": {
|
|
201
217
|
"opacity": 1,
|
|
@@ -476,12 +492,6 @@ var shaderMetadata = {
|
|
|
476
492
|
"speed": 1,
|
|
477
493
|
"detail": 1,
|
|
478
494
|
"blend": 50,
|
|
479
|
-
"coarseX": 50,
|
|
480
|
-
"coarseY": 50,
|
|
481
|
-
"mediumX": 50,
|
|
482
|
-
"mediumY": 50,
|
|
483
|
-
"fineX": 50,
|
|
484
|
-
"fineY": 50,
|
|
485
495
|
"colorSpace": "linear"
|
|
486
496
|
},
|
|
487
497
|
"TiltShift": {
|
|
@@ -541,20 +551,39 @@ var shaderMetadata = {
|
|
|
541
551
|
}
|
|
542
552
|
};
|
|
543
553
|
function generatePropString(props, componentType, indent = " ") {
|
|
544
|
-
return Object.entries(props).filter(([key, value]) => {
|
|
554
|
+
return Object.entries(props).sort(([a], [b]) => a.localeCompare(b)).filter(([key, value]) => {
|
|
555
|
+
if (key === "maskType" && value === "alpha") return false;
|
|
556
|
+
if (key === "transform" && typeof value === "object") {
|
|
557
|
+
if (Object.keys(DEFAULT_TRANSFORM).every((k) => value[k] === DEFAULT_TRANSFORM[k])) return false;
|
|
558
|
+
}
|
|
545
559
|
const componentDefaults = shaderMetadata[componentType] || {};
|
|
546
560
|
if (componentDefaults.hasOwnProperty(key)) {
|
|
547
561
|
const defaultValue = componentDefaults[key];
|
|
548
|
-
if (typeof value === "object" && typeof defaultValue === "object") return JSON.stringify(value) !== JSON.stringify(defaultValue);
|
|
562
|
+
if (value != null && defaultValue != null && typeof value === "object" && typeof defaultValue === "object") return JSON.stringify(value) !== JSON.stringify(defaultValue);
|
|
549
563
|
return value !== defaultValue;
|
|
550
564
|
}
|
|
551
565
|
if (key === "opacity" && value === 1) return false;
|
|
552
566
|
if (key === "blendMode" && value === "normal") return false;
|
|
553
567
|
return true;
|
|
554
568
|
}).map(([key, value]) => {
|
|
569
|
+
if (key === "transform" && typeof value === "object") {
|
|
570
|
+
const nonDefaultKeys = {};
|
|
571
|
+
for (const k in value) if (value[k] !== DEFAULT_TRANSFORM[k]) nonDefaultKeys[k] = value[k];
|
|
572
|
+
const keys = Object.keys(nonDefaultKeys).sort();
|
|
573
|
+
if (keys.length > 1) return `${key}={{\n${indent} ${keys.map((k) => `${k}: ${typeof nonDefaultKeys[k] === "string" ? `"${nonDefaultKeys[k]}"` : nonDefaultKeys[k]}`).join(`,\n${indent} `)}\n${indent} }}`;
|
|
574
|
+
else if (keys.length === 1) {
|
|
575
|
+
const k = keys[0];
|
|
576
|
+
const v = nonDefaultKeys[k];
|
|
577
|
+
return `${key}={{ ${k}: ${typeof v === "string" ? `"${v}"` : v} }}`;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
555
580
|
if (typeof value === "string") return `${key}="${value}"`;
|
|
556
|
-
else if (typeof value === "object")
|
|
557
|
-
|
|
581
|
+
else if (value !== null && typeof value === "object") {
|
|
582
|
+
const roundedValue = { ...value };
|
|
583
|
+
if ("x" in roundedValue && typeof roundedValue.x === "number") roundedValue.x = Math.round(roundedValue.x * 100) / 100;
|
|
584
|
+
if ("y" in roundedValue && typeof roundedValue.y === "number") roundedValue.y = Math.round(roundedValue.y * 100) / 100;
|
|
585
|
+
return `${key}={${toObjectLiteral(roundedValue)}}`;
|
|
586
|
+
} else return `${key}={${value}}`;
|
|
558
587
|
}).join("\n" + indent + " ");
|
|
559
588
|
}
|
|
560
589
|
function isIdUsedAsMaskSource(id, allComponents) {
|
package/dist/react/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as generatePresetCode } from "./generatePresetCode-
|
|
1
|
+
import { n as generatePresetCode } from "./generatePresetCode-Ci4D5lDy.js";
|
|
2
2
|
import { createContext, useContext, useEffect, useMemo, useRef } from "react";
|
|
3
3
|
import { createUniformsMap, shaderRenderer } from "../core/index.js";
|
|
4
4
|
import { componentDefinition } from "../core/shaders/AngularBlur/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generatePresetCode.d.ts","sourceRoot":"","sources":["../../src/utils/generatePresetCode.ts"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;CAC7B;AAED,UAAU,YAAY;IACpB,UAAU,EAAE,eAAe,EAAE,CAAA;CAC9B;
|
|
1
|
+
{"version":3,"file":"generatePresetCode.d.ts","sourceRoot":"","sources":["../../src/utils/generatePresetCode.ts"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;CAC7B;AAED,UAAU,YAAY;IACpB,UAAU,EAAE,eAAe,EAAE,CAAA;CAC9B;AAqpBD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAyC/D;AAGD,eAAO,MAAM,mBAAmB,UAyD/B,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-
|
|
1
|
+
import { n as generatePresetCode, t as availableComponents } from "../generatePresetCode-Ci4D5lDy.js";
|
|
2
2
|
export { availableComponents, generatePresetCode };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generatePresetCode.template.d.ts","sourceRoot":"","sources":["../../src/utils/generatePresetCode.template.ts"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;CAC7B;AAED,UAAU,YAAY;IACpB,UAAU,EAAE,eAAe,EAAE,CAAA;CAC9B;
|
|
1
|
+
{"version":3,"file":"generatePresetCode.template.d.ts","sourceRoot":"","sources":["../../src/utils/generatePresetCode.template.ts"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;CAC7B;AAED,UAAU,YAAY;IACpB,UAAU,EAAE,eAAe,EAAE,CAAA;CAC9B;AA4HD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAyC/D;AAGD,eAAO,MAAM,mBAAmB,OAG/B,CAAA"}
|
package/dist/registry.js
CHANGED
|
@@ -227,7 +227,6 @@ export const shaderRegistry = [
|
|
|
227
227
|
"name": "Beam",
|
|
228
228
|
"category": "Base Layers",
|
|
229
229
|
"description": "A beam of light from one point to another.",
|
|
230
|
-
"acceptsUVContext": true,
|
|
231
230
|
"props": {
|
|
232
231
|
"startPosition": {
|
|
233
232
|
"default": {
|
|
@@ -451,7 +450,6 @@ export const shaderRegistry = [
|
|
|
451
450
|
"name": "Blob",
|
|
452
451
|
"category": "Base Layers",
|
|
453
452
|
"description": "Organic animated blob with 3D lighting and gradients",
|
|
454
|
-
"acceptsUVContext": true,
|
|
455
453
|
"props": {
|
|
456
454
|
"colorA": {
|
|
457
455
|
"default": "#ff6b35",
|
|
@@ -1061,7 +1059,6 @@ export const shaderRegistry = [
|
|
|
1061
1059
|
"name": "Checkerboard",
|
|
1062
1060
|
"category": "Base Layers",
|
|
1063
1061
|
"description": "Classic checkerboard pattern with two alternating colors",
|
|
1064
|
-
"acceptsUVContext": true,
|
|
1065
1062
|
"props": {
|
|
1066
1063
|
"colorA": {
|
|
1067
1064
|
"default": "#cccccc",
|
|
@@ -1486,7 +1483,6 @@ export const shaderRegistry = [
|
|
|
1486
1483
|
"name": "Circle",
|
|
1487
1484
|
"category": "Base Layers",
|
|
1488
1485
|
"description": "Generate a circle with adjustable size and softness",
|
|
1489
|
-
"acceptsUVContext": true,
|
|
1490
1486
|
"props": {
|
|
1491
1487
|
"color": {
|
|
1492
1488
|
"default": "#ffffff",
|
|
@@ -2076,7 +2072,6 @@ export const shaderRegistry = [
|
|
|
2076
2072
|
"name": "DotGrid",
|
|
2077
2073
|
"category": "Base Layers",
|
|
2078
2074
|
"description": "Grid of dots with optional twinkling animation",
|
|
2079
|
-
"acceptsUVContext": true,
|
|
2080
2075
|
"props": {
|
|
2081
2076
|
"color": {
|
|
2082
2077
|
"default": "#ffffff",
|
|
@@ -2292,7 +2287,6 @@ export const shaderRegistry = [
|
|
|
2292
2287
|
"category": "Stylize",
|
|
2293
2288
|
"description": "Analog film grain texture overlay",
|
|
2294
2289
|
"requiresChild": true,
|
|
2295
|
-
"acceptsUVContext": true,
|
|
2296
2290
|
"props": {
|
|
2297
2291
|
"strength": {
|
|
2298
2292
|
"default": 0.5,
|
|
@@ -2331,7 +2325,6 @@ export const shaderRegistry = [
|
|
|
2331
2325
|
"category": "Base Layers",
|
|
2332
2326
|
"description": "Animated floating particles with twinkle effects",
|
|
2333
2327
|
"requiresRTT": false,
|
|
2334
|
-
"acceptsUVContext": true,
|
|
2335
2328
|
"props": {
|
|
2336
2329
|
"randomness": {
|
|
2337
2330
|
"default": 0.25,
|
|
@@ -2588,26 +2581,48 @@ export const shaderRegistry = [
|
|
|
2588
2581
|
"requiresChild": true,
|
|
2589
2582
|
"props": {
|
|
2590
2583
|
"intensity": {
|
|
2591
|
-
"default":
|
|
2584
|
+
"default": 2,
|
|
2592
2585
|
"description": "The intensity of the glass tiles effect",
|
|
2593
2586
|
"ui": {
|
|
2594
2587
|
"type": "range",
|
|
2595
2588
|
"min": 0,
|
|
2596
|
-
"max":
|
|
2589
|
+
"max": 10,
|
|
2597
2590
|
"step": 0.1,
|
|
2598
2591
|
"label": "Intensity"
|
|
2599
2592
|
}
|
|
2600
2593
|
},
|
|
2601
2594
|
"tileCount": {
|
|
2602
|
-
"default":
|
|
2595
|
+
"default": 20,
|
|
2603
2596
|
"description": "Number of tiles across the shortest dimension",
|
|
2604
2597
|
"ui": {
|
|
2605
2598
|
"type": "range",
|
|
2606
|
-
"min":
|
|
2607
|
-
"max":
|
|
2599
|
+
"min": 5,
|
|
2600
|
+
"max": 50,
|
|
2608
2601
|
"step": 1,
|
|
2609
2602
|
"label": "Tile Count"
|
|
2610
2603
|
}
|
|
2604
|
+
},
|
|
2605
|
+
"rotation": {
|
|
2606
|
+
"default": 0,
|
|
2607
|
+
"description": "Rotation angle of the tile grid in degrees",
|
|
2608
|
+
"ui": {
|
|
2609
|
+
"type": "range",
|
|
2610
|
+
"min": 0,
|
|
2611
|
+
"max": 360,
|
|
2612
|
+
"step": 1,
|
|
2613
|
+
"label": "Rotation"
|
|
2614
|
+
}
|
|
2615
|
+
},
|
|
2616
|
+
"roundness": {
|
|
2617
|
+
"default": 0,
|
|
2618
|
+
"description": "Makes tiles more circular instead of square",
|
|
2619
|
+
"ui": {
|
|
2620
|
+
"type": "range",
|
|
2621
|
+
"min": 0,
|
|
2622
|
+
"max": 1,
|
|
2623
|
+
"step": 0.01,
|
|
2624
|
+
"label": "Roundness"
|
|
2625
|
+
}
|
|
2611
2626
|
}
|
|
2612
2627
|
}
|
|
2613
2628
|
},
|
|
@@ -2616,23 +2631,45 @@ export const shaderRegistry = [
|
|
|
2616
2631
|
"ui": {
|
|
2617
2632
|
"type": "range",
|
|
2618
2633
|
"min": 0,
|
|
2619
|
-
"max":
|
|
2634
|
+
"max": 10,
|
|
2620
2635
|
"step": 0.1,
|
|
2621
2636
|
"label": "Intensity"
|
|
2622
2637
|
},
|
|
2623
|
-
"default":
|
|
2638
|
+
"default": 2,
|
|
2624
2639
|
"description": "The intensity of the glass tiles effect"
|
|
2625
2640
|
},
|
|
2626
2641
|
"tileCount": {
|
|
2627
2642
|
"ui": {
|
|
2628
2643
|
"type": "range",
|
|
2629
|
-
"min":
|
|
2630
|
-
"max":
|
|
2644
|
+
"min": 5,
|
|
2645
|
+
"max": 50,
|
|
2631
2646
|
"step": 1,
|
|
2632
2647
|
"label": "Tile Count"
|
|
2633
2648
|
},
|
|
2634
|
-
"default":
|
|
2649
|
+
"default": 20,
|
|
2635
2650
|
"description": "Number of tiles across the shortest dimension"
|
|
2651
|
+
},
|
|
2652
|
+
"rotation": {
|
|
2653
|
+
"ui": {
|
|
2654
|
+
"type": "range",
|
|
2655
|
+
"min": 0,
|
|
2656
|
+
"max": 360,
|
|
2657
|
+
"step": 1,
|
|
2658
|
+
"label": "Rotation"
|
|
2659
|
+
},
|
|
2660
|
+
"default": 0,
|
|
2661
|
+
"description": "Rotation angle of the tile grid in degrees"
|
|
2662
|
+
},
|
|
2663
|
+
"roundness": {
|
|
2664
|
+
"ui": {
|
|
2665
|
+
"type": "range",
|
|
2666
|
+
"min": 0,
|
|
2667
|
+
"max": 1,
|
|
2668
|
+
"step": 0.01,
|
|
2669
|
+
"label": "Roundness"
|
|
2670
|
+
},
|
|
2671
|
+
"default": 0,
|
|
2672
|
+
"description": "Makes tiles more circular instead of square"
|
|
2636
2673
|
}
|
|
2637
2674
|
}
|
|
2638
2675
|
},
|
|
@@ -2730,7 +2767,6 @@ export const shaderRegistry = [
|
|
|
2730
2767
|
"category": "Base Layers",
|
|
2731
2768
|
"description": "Volumetric light rays emanating from a point",
|
|
2732
2769
|
"requiresRTT": false,
|
|
2733
|
-
"acceptsUVContext": true,
|
|
2734
2770
|
"props": {
|
|
2735
2771
|
"center": {
|
|
2736
2772
|
"default": {
|
|
@@ -2903,7 +2939,6 @@ export const shaderRegistry = [
|
|
|
2903
2939
|
"name": "Grid",
|
|
2904
2940
|
"category": "Base Layers",
|
|
2905
2941
|
"description": "Simple grid lines pattern with adjustable thickness",
|
|
2906
|
-
"acceptsUVContext": true,
|
|
2907
2942
|
"props": {
|
|
2908
2943
|
"color": {
|
|
2909
2944
|
"default": "#ffffff",
|
|
@@ -3296,7 +3331,6 @@ export const shaderRegistry = [
|
|
|
3296
3331
|
"name": "ImageTexture",
|
|
3297
3332
|
"category": "Base Layers",
|
|
3298
3333
|
"description": "Display an image with customizable object-fit modes",
|
|
3299
|
-
"acceptsUVContext": true,
|
|
3300
3334
|
"props": {
|
|
3301
3335
|
"url": {
|
|
3302
3336
|
"default": "https://shaders.com/sample.jpg",
|
|
@@ -3465,7 +3499,6 @@ export const shaderRegistry = [
|
|
|
3465
3499
|
"name": "LinearGradient",
|
|
3466
3500
|
"category": "Base Layers",
|
|
3467
3501
|
"description": "Create smooth linear color gradients",
|
|
3468
|
-
"acceptsUVContext": true,
|
|
3469
3502
|
"props": {
|
|
3470
3503
|
"colorA": {
|
|
3471
3504
|
"default": "#1aff00",
|
|
@@ -4176,7 +4209,6 @@ export const shaderRegistry = [
|
|
|
4176
4209
|
"name": "RadialGradient",
|
|
4177
4210
|
"category": "Base Layers",
|
|
4178
4211
|
"description": "Radial gradient radiating from a center point",
|
|
4179
|
-
"acceptsUVContext": true,
|
|
4180
4212
|
"props": {
|
|
4181
4213
|
"colorA": {
|
|
4182
4214
|
"default": "#ff0000",
|
|
@@ -4448,7 +4480,6 @@ export const shaderRegistry = [
|
|
|
4448
4480
|
"name": "Ripples",
|
|
4449
4481
|
"category": "Base Layers",
|
|
4450
4482
|
"description": "Concentric animated ripples emanating from a point",
|
|
4451
|
-
"acceptsUVContext": true,
|
|
4452
4483
|
"props": {
|
|
4453
4484
|
"center": {
|
|
4454
4485
|
"default": {
|
|
@@ -4667,7 +4698,6 @@ export const shaderRegistry = [
|
|
|
4667
4698
|
"name": "SimplexNoise",
|
|
4668
4699
|
"category": "Base Layers",
|
|
4669
4700
|
"description": "Organic noise with animated movement",
|
|
4670
|
-
"acceptsUVContext": true,
|
|
4671
4701
|
"props": {
|
|
4672
4702
|
"colorA": {
|
|
4673
4703
|
"default": "#ffffff",
|
|
@@ -4825,7 +4855,6 @@ export const shaderRegistry = [
|
|
|
4825
4855
|
"name": "SineWave",
|
|
4826
4856
|
"category": "Base Layers",
|
|
4827
4857
|
"description": "Animated wave with thickness and softness",
|
|
4828
|
-
"acceptsUVContext": true,
|
|
4829
4858
|
"props": {
|
|
4830
4859
|
"color": {
|
|
4831
4860
|
"default": "#ffffff",
|
|
@@ -5011,7 +5040,6 @@ export const shaderRegistry = [
|
|
|
5011
5040
|
"name": "SolidColor",
|
|
5012
5041
|
"category": "Base Layers",
|
|
5013
5042
|
"description": "Fill the canvas with a single solid color",
|
|
5014
|
-
"acceptsUVContext": true,
|
|
5015
5043
|
"props": {
|
|
5016
5044
|
"color": {
|
|
5017
5045
|
"default": "#5b18ca",
|
|
@@ -5209,7 +5237,6 @@ export const shaderRegistry = [
|
|
|
5209
5237
|
"name": "Spiral",
|
|
5210
5238
|
"category": "Base Layers",
|
|
5211
5239
|
"description": "Rotating spiral pattern with animated movement",
|
|
5212
|
-
"acceptsUVContext": true,
|
|
5213
5240
|
"props": {
|
|
5214
5241
|
"colorA": {
|
|
5215
5242
|
"default": "#000000",
|
|
@@ -5436,7 +5463,6 @@ export const shaderRegistry = [
|
|
|
5436
5463
|
"description": "Procedural wavy strands with layered animation",
|
|
5437
5464
|
"requiresRTT": false,
|
|
5438
5465
|
"requiresChild": false,
|
|
5439
|
-
"acceptsUVContext": true,
|
|
5440
5466
|
"props": {
|
|
5441
5467
|
"speed": {
|
|
5442
5468
|
"default": 0.5,
|
|
@@ -5796,14 +5822,13 @@ export const shaderRegistry = [
|
|
|
5796
5822
|
"name": "Swirl",
|
|
5797
5823
|
"category": "Base Layers",
|
|
5798
5824
|
"description": "Flowing swirl pattern with multi-layered noise",
|
|
5799
|
-
"acceptsUVContext": true,
|
|
5800
5825
|
"props": {
|
|
5801
5826
|
"colorA": {
|
|
5802
5827
|
"default": "#1275d8",
|
|
5803
5828
|
"description": "Primary gradient color",
|
|
5804
5829
|
"ui": {
|
|
5805
5830
|
"type": "color",
|
|
5806
|
-
"label": "
|
|
5831
|
+
"label": "Color A"
|
|
5807
5832
|
}
|
|
5808
5833
|
},
|
|
5809
5834
|
"colorB": {
|
|
@@ -5811,7 +5836,7 @@ export const shaderRegistry = [
|
|
|
5811
5836
|
"description": "Secondary gradient color",
|
|
5812
5837
|
"ui": {
|
|
5813
5838
|
"type": "color",
|
|
5814
|
-
"label": "
|
|
5839
|
+
"label": "Color B"
|
|
5815
5840
|
}
|
|
5816
5841
|
},
|
|
5817
5842
|
"speed": {
|
|
@@ -5831,7 +5856,7 @@ export const shaderRegistry = [
|
|
|
5831
5856
|
"ui": {
|
|
5832
5857
|
"type": "range",
|
|
5833
5858
|
"min": 0,
|
|
5834
|
-
"max":
|
|
5859
|
+
"max": 5,
|
|
5835
5860
|
"step": 0.1,
|
|
5836
5861
|
"label": "Detail"
|
|
5837
5862
|
}
|
|
@@ -5847,72 +5872,6 @@ export const shaderRegistry = [
|
|
|
5847
5872
|
"label": "Blend"
|
|
5848
5873
|
}
|
|
5849
5874
|
},
|
|
5850
|
-
"coarseX": {
|
|
5851
|
-
"default": 50,
|
|
5852
|
-
"description": "Horizontal frequency for coarse/base layer",
|
|
5853
|
-
"ui": {
|
|
5854
|
-
"type": "range",
|
|
5855
|
-
"min": 0,
|
|
5856
|
-
"max": 100,
|
|
5857
|
-
"step": 1,
|
|
5858
|
-
"label": "Coarse X"
|
|
5859
|
-
}
|
|
5860
|
-
},
|
|
5861
|
-
"coarseY": {
|
|
5862
|
-
"default": 50,
|
|
5863
|
-
"description": "Vertical frequency for coarse/base layer",
|
|
5864
|
-
"ui": {
|
|
5865
|
-
"type": "range",
|
|
5866
|
-
"min": 0,
|
|
5867
|
-
"max": 100,
|
|
5868
|
-
"step": 1,
|
|
5869
|
-
"label": "Coarse Y"
|
|
5870
|
-
}
|
|
5871
|
-
},
|
|
5872
|
-
"mediumX": {
|
|
5873
|
-
"default": 50,
|
|
5874
|
-
"description": "Horizontal frequency for medium detail layer",
|
|
5875
|
-
"ui": {
|
|
5876
|
-
"type": "range",
|
|
5877
|
-
"min": 0,
|
|
5878
|
-
"max": 100,
|
|
5879
|
-
"step": 1,
|
|
5880
|
-
"label": "Medium X"
|
|
5881
|
-
}
|
|
5882
|
-
},
|
|
5883
|
-
"mediumY": {
|
|
5884
|
-
"default": 50,
|
|
5885
|
-
"description": "Vertical frequency for medium detail layer",
|
|
5886
|
-
"ui": {
|
|
5887
|
-
"type": "range",
|
|
5888
|
-
"min": 0,
|
|
5889
|
-
"max": 100,
|
|
5890
|
-
"step": 1,
|
|
5891
|
-
"label": "Medium Y"
|
|
5892
|
-
}
|
|
5893
|
-
},
|
|
5894
|
-
"fineX": {
|
|
5895
|
-
"default": 50,
|
|
5896
|
-
"description": "Horizontal frequency for fine detail layer",
|
|
5897
|
-
"ui": {
|
|
5898
|
-
"type": "range",
|
|
5899
|
-
"min": 0,
|
|
5900
|
-
"max": 100,
|
|
5901
|
-
"step": 1,
|
|
5902
|
-
"label": "Fine X"
|
|
5903
|
-
}
|
|
5904
|
-
},
|
|
5905
|
-
"fineY": {
|
|
5906
|
-
"default": 50,
|
|
5907
|
-
"description": "Vertical frequency for fine detail layer",
|
|
5908
|
-
"ui": {
|
|
5909
|
-
"type": "range",
|
|
5910
|
-
"min": 0,
|
|
5911
|
-
"max": 100,
|
|
5912
|
-
"step": 1,
|
|
5913
|
-
"label": "Fine Y"
|
|
5914
|
-
}
|
|
5915
|
-
},
|
|
5916
5875
|
"colorSpace": {
|
|
5917
5876
|
"default": "linear",
|
|
5918
5877
|
"description": "Color space for color interpolation",
|
|
@@ -5941,7 +5900,7 @@ export const shaderRegistry = [
|
|
|
5941
5900
|
"colorA": {
|
|
5942
5901
|
"ui": {
|
|
5943
5902
|
"type": "color",
|
|
5944
|
-
"label": "
|
|
5903
|
+
"label": "Color A"
|
|
5945
5904
|
},
|
|
5946
5905
|
"default": "#1275d8",
|
|
5947
5906
|
"description": "Primary gradient color"
|
|
@@ -5949,7 +5908,7 @@ export const shaderRegistry = [
|
|
|
5949
5908
|
"colorB": {
|
|
5950
5909
|
"ui": {
|
|
5951
5910
|
"type": "color",
|
|
5952
|
-
"label": "
|
|
5911
|
+
"label": "Color B"
|
|
5953
5912
|
},
|
|
5954
5913
|
"default": "#e19136",
|
|
5955
5914
|
"description": "Secondary gradient color"
|
|
@@ -5969,7 +5928,7 @@ export const shaderRegistry = [
|
|
|
5969
5928
|
"ui": {
|
|
5970
5929
|
"type": "range",
|
|
5971
5930
|
"min": 0,
|
|
5972
|
-
"max":
|
|
5931
|
+
"max": 5,
|
|
5973
5932
|
"step": 0.1,
|
|
5974
5933
|
"label": "Detail"
|
|
5975
5934
|
},
|
|
@@ -5987,72 +5946,6 @@ export const shaderRegistry = [
|
|
|
5987
5946
|
"default": 50,
|
|
5988
5947
|
"description": "Skew color balance toward A (lower values) or B (higher values)"
|
|
5989
5948
|
},
|
|
5990
|
-
"coarseX": {
|
|
5991
|
-
"ui": {
|
|
5992
|
-
"type": "range",
|
|
5993
|
-
"min": 0,
|
|
5994
|
-
"max": 100,
|
|
5995
|
-
"step": 1,
|
|
5996
|
-
"label": "Coarse X"
|
|
5997
|
-
},
|
|
5998
|
-
"default": 50,
|
|
5999
|
-
"description": "Horizontal frequency for coarse/base layer"
|
|
6000
|
-
},
|
|
6001
|
-
"coarseY": {
|
|
6002
|
-
"ui": {
|
|
6003
|
-
"type": "range",
|
|
6004
|
-
"min": 0,
|
|
6005
|
-
"max": 100,
|
|
6006
|
-
"step": 1,
|
|
6007
|
-
"label": "Coarse Y"
|
|
6008
|
-
},
|
|
6009
|
-
"default": 50,
|
|
6010
|
-
"description": "Vertical frequency for coarse/base layer"
|
|
6011
|
-
},
|
|
6012
|
-
"mediumX": {
|
|
6013
|
-
"ui": {
|
|
6014
|
-
"type": "range",
|
|
6015
|
-
"min": 0,
|
|
6016
|
-
"max": 100,
|
|
6017
|
-
"step": 1,
|
|
6018
|
-
"label": "Medium X"
|
|
6019
|
-
},
|
|
6020
|
-
"default": 50,
|
|
6021
|
-
"description": "Horizontal frequency for medium detail layer"
|
|
6022
|
-
},
|
|
6023
|
-
"mediumY": {
|
|
6024
|
-
"ui": {
|
|
6025
|
-
"type": "range",
|
|
6026
|
-
"min": 0,
|
|
6027
|
-
"max": 100,
|
|
6028
|
-
"step": 1,
|
|
6029
|
-
"label": "Medium Y"
|
|
6030
|
-
},
|
|
6031
|
-
"default": 50,
|
|
6032
|
-
"description": "Vertical frequency for medium detail layer"
|
|
6033
|
-
},
|
|
6034
|
-
"fineX": {
|
|
6035
|
-
"ui": {
|
|
6036
|
-
"type": "range",
|
|
6037
|
-
"min": 0,
|
|
6038
|
-
"max": 100,
|
|
6039
|
-
"step": 1,
|
|
6040
|
-
"label": "Fine X"
|
|
6041
|
-
},
|
|
6042
|
-
"default": 50,
|
|
6043
|
-
"description": "Horizontal frequency for fine detail layer"
|
|
6044
|
-
},
|
|
6045
|
-
"fineY": {
|
|
6046
|
-
"ui": {
|
|
6047
|
-
"type": "range",
|
|
6048
|
-
"min": 0,
|
|
6049
|
-
"max": 100,
|
|
6050
|
-
"step": 1,
|
|
6051
|
-
"label": "Fine Y"
|
|
6052
|
-
},
|
|
6053
|
-
"default": 50,
|
|
6054
|
-
"description": "Vertical frequency for fine detail layer"
|
|
6055
|
-
},
|
|
6056
5949
|
"colorSpace": {
|
|
6057
5950
|
"ui": {
|
|
6058
5951
|
"type": "select",
|