shaders 2.2.11 → 2.2.14

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.
Files changed (67) hide show
  1. package/dist/core/{Blob-C0G0efjG.js → Blob-CzWSpVTR.js} +1 -1
  2. package/dist/core/{Checkerboard-BPkiSF5I.js → Checkerboard-B8CnUlbi.js} +1 -1
  3. package/dist/core/{CursorTrail-BeJGeovB.js → CursorTrail-BcaRHjU5.js} +1 -1
  4. package/dist/core/{Duotone-_nR_o3-g.js → Duotone-DGNEAlye.js} +1 -1
  5. package/dist/core/Godrays-D3VnYrAm.js +106 -0
  6. package/dist/core/{LinearGradient-LEMeW0KM.js → LinearGradient-DPe-Z-lw.js} +1 -1
  7. package/dist/core/{RadialGradient-D0cN67jm.js → RadialGradient-CbaCbOJj.js} +1 -1
  8. package/dist/core/{Ripples-DH71sFJc.js → Ripples-0Ufm3-fY.js} +9 -8
  9. package/dist/core/{SimplexNoise-DPGC2OPJ.js → SimplexNoise-BKB94dhx.js} +7 -6
  10. package/dist/core/Spherize-CqjZj4yV.js +104 -0
  11. package/dist/core/{Spiral-CcyI8azF.js → Spiral-BkzSmPUL.js} +1 -1
  12. package/dist/core/{Swirl-BpMwkNcm.js → Swirl-BHn9Ji7_.js} +1 -1
  13. package/dist/core/{Tritone-Dx48G3b1.js → Tritone-DrzxJUaq.js} +1 -1
  14. package/dist/core/colorMixing-C-FChLp0.js +22 -0
  15. package/dist/core/index.js +135 -133
  16. package/dist/core/shaderRegistry.d.ts.map +1 -1
  17. package/dist/core/shaders/Blob/index.js +2 -2
  18. package/dist/core/shaders/Checkerboard/index.js +2 -2
  19. package/dist/core/shaders/CursorTrail/index.js +2 -2
  20. package/dist/core/shaders/Duotone/index.js +2 -2
  21. package/dist/core/shaders/Godrays/index.d.ts.map +1 -1
  22. package/dist/core/shaders/Godrays/index.js +1 -1
  23. package/dist/core/shaders/LinearGradient/index.js +2 -2
  24. package/dist/core/shaders/RadialGradient/index.js +2 -2
  25. package/dist/core/shaders/Ripples/index.d.ts.map +1 -1
  26. package/dist/core/shaders/Ripples/index.js +4 -3
  27. package/dist/core/shaders/SimplexNoise/index.d.ts.map +1 -1
  28. package/dist/core/shaders/SimplexNoise/index.js +4 -3
  29. package/dist/core/shaders/Spherize/index.d.ts +62 -0
  30. package/dist/core/shaders/Spherize/index.d.ts.map +1 -0
  31. package/dist/core/shaders/Spherize/index.js +7 -0
  32. package/dist/core/shaders/Spiral/index.js +2 -2
  33. package/dist/core/shaders/Strands/index.js +1 -1
  34. package/dist/core/shaders/Stretch/index.js +1 -1
  35. package/dist/core/shaders/Swirl/index.js +2 -2
  36. package/dist/core/shaders/TiltShift/index.js +1 -1
  37. package/dist/core/shaders/Tritone/index.js +2 -2
  38. package/dist/core/shaders/Twirl/index.js +1 -1
  39. package/dist/core/shaders/Vibrance/index.js +1 -1
  40. package/dist/core/shaders/WaveDistortion/index.js +1 -1
  41. package/dist/core/shaders/ZoomBlur/index.js +1 -1
  42. package/dist/core/utilities/colorMixing.d.ts.map +1 -1
  43. package/dist/react/{generatePresetCode-CbulNGo3.js → generatePresetCode-BXrrE8g5.js} +9 -4
  44. package/dist/react/{generatePresetCode-ClK4i9O1.cjs → generatePresetCode-DWBlTzlt.cjs} +2 -2
  45. package/dist/react/index.cjs +71 -71
  46. package/dist/react/index.js +9016 -8795
  47. package/dist/react/utils/generatePresetCode.cjs +1 -1
  48. package/dist/react/utils/generatePresetCode.js +1 -1
  49. package/dist/registry.js +166 -0
  50. package/dist/svelte/components/Spherize.svelte.d.ts +19 -0
  51. package/dist/svelte/{generatePresetCode-CbulNGo3.js → generatePresetCode-BXrrE8g5.js} +9 -4
  52. package/dist/svelte/index.d.ts +1 -0
  53. package/dist/svelte/index.js +8244 -8064
  54. package/dist/svelte/utils/generatePresetCode.js +1 -1
  55. package/dist/vue/{generatePresetCode-Baa8DyZE.js → generatePresetCode-nej_B_Ke.js} +30 -25
  56. package/dist/vue/index.js +7848 -7646
  57. package/dist/vue/utils/generatePresetCode.js +1 -1
  58. package/package.json +6 -1
  59. package/dist/core/Godrays-cUzAKVXn.js +0 -106
  60. package/dist/core/colorMixing-DPZ-Td4U.js +0 -22
  61. /package/dist/core/{Strands-Co4fkc05.js → Strands-DyrV6zDO.js} +0 -0
  62. /package/dist/core/{Stretch-C8iYAgNS.js → Stretch-DeBlJ-NH.js} +0 -0
  63. /package/dist/core/{TiltShift-D31nakFq.js → TiltShift-DiArippe.js} +0 -0
  64. /package/dist/core/{Twirl-ng6pwyl2.js → Twirl-C6xj1p52.js} +0 -0
  65. /package/dist/core/{Vibrance-D0ArL0qp.js → Vibrance-C6lNgpWH.js} +0 -0
  66. /package/dist/core/{WaveDistortion-DGKrpUdb.js → WaveDistortion-DcXxPZ2w.js} +0 -0
  67. /package/dist/core/{ZoomBlur-uQyy5yko.js → ZoomBlur-_feIVJs6.js} +0 -0
@@ -1 +1 @@
1
- const e=require("../generatePresetCode-ClK4i9O1.cjs");exports.availableComponents=e.availableComponents;exports.generatePresetCode=e.generatePresetCode;
1
+ const e=require("../generatePresetCode-DWBlTzlt.cjs");exports.availableComponents=e.availableComponents;exports.generatePresetCode=e.generatePresetCode;
@@ -1,4 +1,4 @@
1
- import { n as a, t as o } from "../generatePresetCode-CbulNGo3.js";
1
+ import { n as a, t as o } from "../generatePresetCode-BXrrE8g5.js";
2
2
  export {
3
3
  o as availableComponents,
4
4
  a as generatePresetCode
package/dist/registry.js CHANGED
@@ -4810,6 +4810,172 @@ export const shaderRegistry = [
4810
4810
  }
4811
4811
  }
4812
4812
  },
4813
+ {
4814
+ "name": "Spherize",
4815
+ "category": "Distortions",
4816
+ "description": "Map content onto a 3D sphere surface with depth distortion",
4817
+ "fileName": "Spherize",
4818
+ "requiresChild": true,
4819
+ "definition": {
4820
+ "name": "Spherize",
4821
+ "category": "Distortions",
4822
+ "description": "Map content onto a 3D sphere surface with depth distortion",
4823
+ "requiresRTT": true,
4824
+ "requiresChild": true,
4825
+ "props": {
4826
+ "radius": {
4827
+ "default": 1,
4828
+ "description": "Radius of the sphere (1 = half viewport height)",
4829
+ "ui": {
4830
+ "type": "range",
4831
+ "min": 0.1,
4832
+ "max": 3,
4833
+ "step": 0.01,
4834
+ "label": "Radius"
4835
+ }
4836
+ },
4837
+ "depth": {
4838
+ "default": 1,
4839
+ "description": "How much the sphere bulges toward viewer (0 = flat, higher = more bulge)",
4840
+ "ui": {
4841
+ "type": "range",
4842
+ "min": 0,
4843
+ "max": 3,
4844
+ "step": 0.01,
4845
+ "label": "Depth"
4846
+ }
4847
+ },
4848
+ "center": {
4849
+ "default": {
4850
+ "x": 0.5,
4851
+ "y": 0.5
4852
+ },
4853
+ "description": "The center point of the sphere",
4854
+ "ui": {
4855
+ "type": "position",
4856
+ "label": "Center"
4857
+ }
4858
+ },
4859
+ "lightPosition": {
4860
+ "default": {
4861
+ "x": 0.3,
4862
+ "y": 0.3
4863
+ },
4864
+ "description": "Position of the specular light source",
4865
+ "ui": {
4866
+ "type": "position",
4867
+ "label": "Light Position"
4868
+ }
4869
+ },
4870
+ "lightIntensity": {
4871
+ "default": 0.5,
4872
+ "description": "Intensity of the rim light (0 = off)",
4873
+ "ui": {
4874
+ "type": "range",
4875
+ "min": 0,
4876
+ "max": 1,
4877
+ "step": 0.01,
4878
+ "label": "Light Intensity"
4879
+ }
4880
+ },
4881
+ "lightSoftness": {
4882
+ "default": 0.5,
4883
+ "description": "Softness of the rim light falloff (0 = hard edge, 1 = soft glow)",
4884
+ "ui": {
4885
+ "type": "range",
4886
+ "min": 0,
4887
+ "max": 1,
4888
+ "step": 0.01,
4889
+ "label": "Light Softness"
4890
+ }
4891
+ },
4892
+ "lightColor": {
4893
+ "default": "#ffffff",
4894
+ "description": "Color of the specular highlight",
4895
+ "ui": {
4896
+ "type": "color",
4897
+ "label": "Light Color"
4898
+ }
4899
+ }
4900
+ }
4901
+ },
4902
+ "propsMetadata": {
4903
+ "radius": {
4904
+ "ui": {
4905
+ "type": "range",
4906
+ "min": 0.1,
4907
+ "max": 3,
4908
+ "step": 0.01,
4909
+ "label": "Radius"
4910
+ },
4911
+ "default": 1,
4912
+ "description": "Radius of the sphere (1 = half viewport height)"
4913
+ },
4914
+ "depth": {
4915
+ "ui": {
4916
+ "type": "range",
4917
+ "min": 0,
4918
+ "max": 3,
4919
+ "step": 0.01,
4920
+ "label": "Depth"
4921
+ },
4922
+ "default": 1,
4923
+ "description": "How much the sphere bulges toward viewer (0 = flat, higher = more bulge)"
4924
+ },
4925
+ "center": {
4926
+ "ui": {
4927
+ "type": "position",
4928
+ "label": "Center"
4929
+ },
4930
+ "default": {
4931
+ "x": 0.5,
4932
+ "y": 0.5
4933
+ },
4934
+ "description": "The center point of the sphere"
4935
+ },
4936
+ "lightPosition": {
4937
+ "ui": {
4938
+ "type": "position",
4939
+ "label": "Light Position"
4940
+ },
4941
+ "default": {
4942
+ "x": 0.3,
4943
+ "y": 0.3
4944
+ },
4945
+ "description": "Position of the specular light source"
4946
+ },
4947
+ "lightIntensity": {
4948
+ "ui": {
4949
+ "type": "range",
4950
+ "min": 0,
4951
+ "max": 1,
4952
+ "step": 0.01,
4953
+ "label": "Light Intensity"
4954
+ },
4955
+ "default": 0.5,
4956
+ "description": "Intensity of the rim light (0 = off)"
4957
+ },
4958
+ "lightSoftness": {
4959
+ "ui": {
4960
+ "type": "range",
4961
+ "min": 0,
4962
+ "max": 1,
4963
+ "step": 0.01,
4964
+ "label": "Light Softness"
4965
+ },
4966
+ "default": 0.5,
4967
+ "description": "Softness of the rim light falloff (0 = hard edge, 1 = soft glow)"
4968
+ },
4969
+ "lightColor": {
4970
+ "ui": {
4971
+ "type": "color",
4972
+ "label": "Light Color"
4973
+ },
4974
+ "default": "#ffffff",
4975
+ "description": "Color of the specular highlight"
4976
+ }
4977
+ }
4978
+ },
4813
4979
  {
4814
4980
  "name": "Spiral",
4815
4981
  "category": "Base Layers",
@@ -0,0 +1,19 @@
1
+ import { type BlendMode, type TransformConfig } from 'shaders/core';
2
+ import { type ComponentProps } from 'shaders/core/Spherize';
3
+ /**
4
+ * Define component props including blend mode, opacity, visibility, masking, and transformation
5
+ */
6
+ interface ExtendedComponentProps extends Partial<ComponentProps> {
7
+ blendMode?: BlendMode;
8
+ opacity?: number;
9
+ visible?: boolean;
10
+ id?: string;
11
+ maskSource?: string;
12
+ maskType?: string;
13
+ renderOrder?: number;
14
+ transform?: Partial<TransformConfig>;
15
+ children?: import('svelte').Snippet;
16
+ }
17
+ declare const Spherize: import("svelte").Component<ExtendedComponentProps, {}, "">;
18
+ type Spherize = ReturnType<typeof Spherize>;
19
+ export default Spherize;
@@ -171,6 +171,10 @@ var p = {
171
171
  opacity: 1,
172
172
  blendMode: "normal"
173
173
  },
174
+ Spherize: {
175
+ opacity: 1,
176
+ blendMode: "normal"
177
+ },
174
178
  Spiral: {
175
179
  opacity: 1,
176
180
  blendMode: "normal"
@@ -223,7 +227,7 @@ function c(l, t, e = " ") {
223
227
  }).map(([o, r]) => typeof r == "string" ? `${o}="${r}"` : typeof r == "object" ? `${o}={${JSON.stringify(r)}}` : `${o}={${r}}`).join(`
224
228
  ` + e + " ");
225
229
  }
226
- function s(l, t) {
230
+ function m(l, t) {
227
231
  const e = [];
228
232
  function o(r) {
229
233
  for (const n of r)
@@ -231,11 +235,11 @@ function s(l, t) {
231
235
  }
232
236
  return o(t), e.some((r) => r.props?.maskSource === l);
233
237
  }
234
- function m(l) {
238
+ function s(l) {
235
239
  const t = (e, o = " ") => {
236
240
  const r = e.props ? c(e.props, e.type, o) : "";
237
241
  let n = "";
238
- e.id && s(e.id, l.components) && (n = `id="${e.id}"`);
242
+ e.id && m(e.id, l.components) && (n = `id="${e.id}"`);
239
243
  const a = [n, r].filter(Boolean).join(`
240
244
  ` + o + " ");
241
245
  if (e.children && e.children.length > 0) {
@@ -299,6 +303,7 @@ const y = [
299
303
  "SimplexNoise",
300
304
  "SineWave",
301
305
  "SolidColor",
306
+ "Spherize",
302
307
  "Spiral",
303
308
  "Strands",
304
309
  "Stretch",
@@ -311,6 +316,6 @@ const y = [
311
316
  "ZoomBlur"
312
317
  ];
313
318
  export {
314
- m as n,
319
+ s as n,
315
320
  y as t
316
321
  };
@@ -41,6 +41,7 @@ export { default as Saturation } from './components/Saturation.svelte';
41
41
  export { default as SimplexNoise } from './components/SimplexNoise.svelte';
42
42
  export { default as SineWave } from './components/SineWave.svelte';
43
43
  export { default as SolidColor } from './components/SolidColor.svelte';
44
+ export { default as Spherize } from './components/Spherize.svelte';
44
45
  export { default as Spiral } from './components/Spiral.svelte';
45
46
  export { default as Strands } from './components/Strands.svelte';
46
47
  export { default as Stretch } from './components/Stretch.svelte';