shaders 3.1.455 → 3.1.456

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 (136) hide show
  1. package/dist/cli.js +2 -2
  2. package/dist/core/{Aurora-CTWNhlNr.js → Aurora-A5yag1_A.js} +1 -1
  3. package/dist/core/{BlockDissolve-DwWPjla0.js → BlockDissolve-B9xWZC6U.js} +1 -1
  4. package/dist/core/{BlockNoise-BMt760_p.js → BlockNoise-Csb39Mqw.js} +1 -1
  5. package/dist/core/{BlueNoise-Cfo_HthN.js → BlueNoise-CnSe6lOE.js} +1 -1
  6. package/dist/core/{Boids-CtvT1VsV.js → Boids-C7NstB5L.js} +1 -1
  7. package/dist/core/{BrushedMetal-BAgNgeo1.js → BrushedMetal-D2X_nM8z.js} +1 -1
  8. package/dist/core/{CarbonFiber-mK6eHIpy.js → CarbonFiber-BFogRBFa.js} +1 -1
  9. package/dist/core/{Chalkboard-BizZEHlC.js → Chalkboard-DEuq4TWm.js} +8 -39
  10. package/dist/core/{Chrome-DoPYr4Kd.js → Chrome-DdV9RY9D.js} +1 -1
  11. package/dist/core/{Crystal-B9DIgDD7.js → Crystal-CB_U2g2k.js} +1 -1
  12. package/dist/core/{CurlNoise-D6kSV8PJ.js → CurlNoise-CFAQHy-5.js} +1 -1
  13. package/dist/core/{DataMosh-CjVK_gxL.js → DataMosh-C_esIK54.js} +8 -20
  14. package/dist/core/{DiffuseBlur-DUBfHpUN.js → DiffuseBlur-DmPHOfr_.js} +8 -55
  15. package/dist/core/{Dither-B4lhnNLA.js → Dither-CBsFenFW.js} +8 -39
  16. package/dist/core/{Engraving-DNNHKvIr.js → Engraving-CmNKAHmF.js} +1 -1
  17. package/dist/core/{ErosionNoise-w1aTuwY4.js → ErosionNoise-BjD0wAyD.js} +1 -1
  18. package/dist/core/{FilmGrain-BeZQzxdU.js → FilmGrain-CgvcPFDC.js} +29 -43
  19. package/dist/core/{FloatingParticles-Ch5OJjCc.js → FloatingParticles-BGig0_Ks.js} +1 -1
  20. package/dist/core/{FlowField-Cime_Fqy.js → FlowField-0I_PwtkD.js} +1 -1
  21. package/dist/core/{FlowingGradient-DL1e3OKu.js → FlowingGradient-ClUwpsZJ.js} +1 -1
  22. package/dist/core/{Fog-DvOvVKbF.js → Fog-DxFsHnT2.js} +51 -115
  23. package/dist/core/{FractalNoise-Bu8FbMYX.js → FractalNoise-CgR9wvoG.js} +1 -1
  24. package/dist/core/{Frost-BnE3EI6s.js → Frost-BL4zkGjj.js} +1 -1
  25. package/dist/core/{GaborNoise-BZFyQbDr.js → GaborNoise-BHDznYFh.js} +1 -1
  26. package/dist/core/{Glitch-nokyLk8Q.js → Glitch-D-QTlz5D.js} +7 -24
  27. package/dist/core/{Godrays-fglKeS0z.js → Godrays-Bh6Idg3p.js} +8 -43
  28. package/dist/core/{Heatmap-Bp0wi8r1.js → Heatmap-DhvtrL45.js} +1 -1
  29. package/dist/core/{Hologram-B-090nzV.js → Hologram-DR88qD5X.js} +8 -40
  30. package/dist/core/{Holographic-CSIQUm1_.js → Holographic-DKc_nNnT.js} +1 -1
  31. package/dist/core/{LightEdge-l2zPIeMQ.js → LightEdge-CF0k0vMa.js} +1 -1
  32. package/dist/core/{LightLeak-BSy19CB6.js → LightLeak-Bu6xFjg-.js} +1 -1
  33. package/dist/core/{LiquidMetal-BbyxqZoO.js → LiquidMetal-Bhenyeg-.js} +1 -1
  34. package/dist/core/{MagneticFilings-5NVqpsrW.js → MagneticFilings-Bn5DZWor.js} +1 -1
  35. package/dist/core/{Marble-CzoJcXvo.js → Marble-CSOGQ6C0.js} +1 -1
  36. package/dist/core/{NoiseDissolve-DxvqR71w.js → NoiseDissolve-B-fFjiGJ.js} +1 -1
  37. package/dist/core/{Paper-Bn3DETI2.js → Paper-w8M4w_Sm.js} +1 -1
  38. package/dist/core/{ParticleField-CUtlCqxz.js → ParticleField-UGf3Daat.js} +1 -1
  39. package/dist/core/{ParticleFlow-Ck5Ta_Rj.js → ParticleFlow-C7vEbMS3.js} +1 -1
  40. package/dist/core/{Particles-rnTAu4Mr.js → Particles-CumYpD-5.js} +1 -1
  41. package/dist/core/{PerlinNoise-BUbmE_JA.js → PerlinNoise-sjc342lu.js} +1 -1
  42. package/dist/core/{PixelSort-CF0-TpU7.js → PixelSort-C7tv3A5u.js} +19 -41
  43. package/dist/core/{Plasma-DOH9gxWt.js → Plasma-DBzZcfQN.js} +1 -1
  44. package/dist/core/{Plastic-CQNoTl22.js → Plastic-C0Sl_sV1.js} +1 -1
  45. package/dist/core/{RandomBars-B7ZwitL3.js → RandomBars-B66TF6V8.js} +1 -1
  46. package/dist/core/{ReactionDiffusion--54drNkY.js → ReactionDiffusion-cYvl6ks9.js} +27 -55
  47. package/dist/core/{Scratches-Ih3Kx_UW.js → Scratches-CChXWpPg.js} +1 -1
  48. package/dist/core/{SimplexNoise-E7ssgWPN.js → SimplexNoise-bCC60yB9.js} +1 -1
  49. package/dist/core/{Stone-i7v3RIb9.js → Stone-xSVm7jNc.js} +2 -2
  50. package/dist/core/{Surface3D-DxzfMHn2.js → Surface3D-Dd_T3xvt.js} +1 -1
  51. package/dist/core/{VHS-Z23X9XD6.js → VHS-CGffLHVk.js} +32 -101
  52. package/dist/core/{Water-DlvNrnrU.js → Water-CGBvuzXj.js} +1 -1
  53. package/dist/core/{Watercolor-BWx4xdwk.js → Watercolor-CGOpgWt8.js} +1 -1
  54. package/dist/core/{WaveletNoise-CZS67VBU.js → WaveletNoise-B8MeveW8.js} +1 -1
  55. package/dist/core/{Wool-CEaWGZB1.js → Wool-CuhWR2jo.js} +2 -2
  56. package/dist/core/index.js +57 -57
  57. package/dist/core/{noise-Bd6IGS0W.js → noise-DX5Y_I--.js} +1 -1
  58. package/dist/core/{noiseStylize-CkeVSB9C.js → noiseStylize-BZD5cOJl.js} +1 -1
  59. package/dist/core/registry.js +57 -57
  60. package/dist/core/{shaderRegistry-DLSuwWtO.js → shaderRegistry-IG9k35Qx.js} +54 -54
  61. package/dist/core/shaders/Aurora/index.js +2 -2
  62. package/dist/core/shaders/BlockDissolve/index.js +2 -2
  63. package/dist/core/shaders/BlockNoise/index.js +2 -2
  64. package/dist/core/shaders/BlueNoise/index.js +2 -2
  65. package/dist/core/shaders/Boids/index.js +2 -2
  66. package/dist/core/shaders/BrushedMetal/index.js +2 -2
  67. package/dist/core/shaders/CarbonFiber/index.js +2 -2
  68. package/dist/core/shaders/Chalkboard/index.d.ts.map +1 -1
  69. package/dist/core/shaders/Chalkboard/index.js +2 -1
  70. package/dist/core/shaders/Chrome/index.js +2 -2
  71. package/dist/core/shaders/Crystal/index.js +2 -2
  72. package/dist/core/shaders/CurlNoise/index.js +2 -2
  73. package/dist/core/shaders/DataMosh/index.d.ts +3 -1
  74. package/dist/core/shaders/DataMosh/index.d.ts.map +1 -1
  75. package/dist/core/shaders/DataMosh/index.js +2 -1
  76. package/dist/core/shaders/DiffuseBlur/index.d.ts.map +1 -1
  77. package/dist/core/shaders/DiffuseBlur/index.js +2 -1
  78. package/dist/core/shaders/Dither/index.d.ts.map +1 -1
  79. package/dist/core/shaders/Dither/index.js +2 -1
  80. package/dist/core/shaders/Engraving/index.js +2 -2
  81. package/dist/core/shaders/ErosionNoise/index.js +2 -2
  82. package/dist/core/shaders/FilmGrain/index.d.ts.map +1 -1
  83. package/dist/core/shaders/FilmGrain/index.js +2 -1
  84. package/dist/core/shaders/FloatingParticles/index.js +2 -2
  85. package/dist/core/shaders/FlowField/index.js +2 -2
  86. package/dist/core/shaders/FlowingGradient/index.js +2 -2
  87. package/dist/core/shaders/Fog/index.d.ts.map +1 -1
  88. package/dist/core/shaders/Fog/index.js +2 -1
  89. package/dist/core/shaders/FractalNoise/index.js +2 -2
  90. package/dist/core/shaders/Frost/index.js +2 -2
  91. package/dist/core/shaders/GaborNoise/index.js +2 -2
  92. package/dist/core/shaders/Glitch/index.d.ts.map +1 -1
  93. package/dist/core/shaders/Glitch/index.js +2 -1
  94. package/dist/core/shaders/Godrays/index.d.ts.map +1 -1
  95. package/dist/core/shaders/Godrays/index.js +2 -1
  96. package/dist/core/shaders/Heatmap/index.js +2 -2
  97. package/dist/core/shaders/Hologram/index.d.ts.map +1 -1
  98. package/dist/core/shaders/Hologram/index.js +2 -2
  99. package/dist/core/shaders/Holographic/index.js +2 -2
  100. package/dist/core/shaders/LightEdge/index.js +2 -2
  101. package/dist/core/shaders/LightLeak/index.js +2 -2
  102. package/dist/core/shaders/LiquidMetal/index.js +2 -2
  103. package/dist/core/shaders/MagneticFilings/index.js +2 -2
  104. package/dist/core/shaders/Marble/index.js +2 -2
  105. package/dist/core/shaders/NoiseDissolve/index.js +2 -2
  106. package/dist/core/shaders/Paper/index.js +2 -2
  107. package/dist/core/shaders/ParticleField/index.js +2 -2
  108. package/dist/core/shaders/ParticleFlow/index.js +2 -2
  109. package/dist/core/shaders/Particles/index.js +2 -2
  110. package/dist/core/shaders/PerlinNoise/index.js +2 -2
  111. package/dist/core/shaders/PixelSort/index.d.ts +2 -1
  112. package/dist/core/shaders/PixelSort/index.d.ts.map +1 -1
  113. package/dist/core/shaders/PixelSort/index.js +2 -1
  114. package/dist/core/shaders/Plasma/index.js +2 -2
  115. package/dist/core/shaders/Plastic/index.js +2 -2
  116. package/dist/core/shaders/RandomBars/index.js +2 -2
  117. package/dist/core/shaders/ReactionDiffusion/index.d.ts.map +1 -1
  118. package/dist/core/shaders/ReactionDiffusion/index.js +2 -1
  119. package/dist/core/shaders/Scratches/index.js +2 -2
  120. package/dist/core/shaders/SimplexNoise/index.js +2 -2
  121. package/dist/core/shaders/Stone/index.js +3 -3
  122. package/dist/core/shaders/Surface3D/index.js +2 -2
  123. package/dist/core/shaders/VHS/index.d.ts.map +1 -1
  124. package/dist/core/shaders/VHS/index.js +2 -1
  125. package/dist/core/shaders/Water/index.js +2 -2
  126. package/dist/core/shaders/Watercolor/index.js +2 -2
  127. package/dist/core/shaders/WaveletNoise/index.js +2 -2
  128. package/dist/core/shaders/Wool/index.js +3 -3
  129. package/dist/js/bundle.js +69 -69
  130. package/dist/js/createShader.js +1 -1
  131. package/dist/react/Shader.js +1 -1
  132. package/dist/react/bundle.js +70 -70
  133. package/dist/solid/engine/Shader.js +1 -1
  134. package/dist/svelte/index.js +1 -1
  135. package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
  136. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
- import { Bt as sin, Dt as floor, F as blend_exports, Gt as data_exports, Ht as sqrt, I as unpremultiplyAlpha, Jt as texture2d, Mt as mix, Ot as fract, Rt as round, Vt as smoothstep, Yt as textureStorage2d, an as vec2u, at as std_exports, cn as vec4f, dn as i32, en as struct, f as ZERO, fn as u32, gt as select, h as call, jt as min, lt as textureStore, on as vec3f, qt as arrayOf, rn as vec2f, rt as src_default, st as textureLoad, un as f32, wt as dot, xt as clamp } from "./edges-CD7gCAto.js";
1
+ import { Dt as floor, F as blend_exports, Gt as data_exports, Ht as sqrt, I as unpremultiplyAlpha, Jt as texture2d, Mt as mix, Rt as round, Vt as smoothstep, Yt as textureStorage2d, an as vec2u, at as std_exports, cn as vec4f, dn as i32, en as struct, f as ZERO, fn as u32, gt as select, h as call, jt as min, lt as textureStore, on as vec3f, qt as arrayOf, rn as vec2f, rt as src_default, st as textureLoad, un as f32, wt as dot, xt as clamp } from "./edges-CD7gCAto.js";
2
+ import { c as hash13, m as noise_exports } from "./noise-DX5Y_I--.js";
2
3
  import { M as createGuardedCompute, P as createStateBuffer } from "./device-B0ZwBfOg.js";
3
4
  var WORK = 512;
4
5
  var CELL_COUNT = WORK * WORK;
@@ -216,7 +217,7 @@ const cellRand = src_default.fn([
216
217
  f32
217
218
  ], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((xf, yf, seed) => {
218
219
  "use gpu";
219
- return fract(__tsover_mul(sin(__tsover_add(__tsover_add(__tsover_mul(xf, 12.9898), __tsover_mul(yf, 78.233)), __tsover_mul(seed, .137))), 43758.5453));
220
+ return hash13(vec3f(xf, yf, seed));
220
221
  }), {
221
222
  v: 1,
222
223
  name: void 0,
@@ -239,52 +240,29 @@ const cellRand = src_default.fn([
239
240
  6,
240
241
  [
241
242
  7,
242
- "std",
243
- "fract"
243
+ "noise",
244
+ "hash13"
244
245
  ],
245
246
  [[
246
- 1,
247
+ 6,
247
248
  [
248
- 6,
249
- [
250
- 7,
251
- "std",
252
- "sin"
253
- ],
254
- [[
255
- 1,
256
- [
257
- 1,
258
- [
259
- 1,
260
- "xf",
261
- "*",
262
- [5, "12.9898"]
263
- ],
264
- "+",
265
- [
266
- 1,
267
- "yf",
268
- "*",
269
- [5, "78.233"]
270
- ]
271
- ],
272
- "+",
273
- [
274
- 1,
275
- "seed",
276
- "*",
277
- [5, "0.137"]
278
- ]
279
- ]]
249
+ 7,
250
+ "d",
251
+ "vec3f"
280
252
  ],
281
- "*",
282
- [5, "43758.5453"]
253
+ [
254
+ "xf",
255
+ "yf",
256
+ "seed"
257
+ ]
283
258
  ]]
284
259
  ]]]],
285
- "externalNames": ["std"]
260
+ "externalNames": ["noise", "d"]
286
261
  },
287
- externals: () => ({ std: std_exports })
262
+ externals: () => ({
263
+ noise: noise_exports,
264
+ d: data_exports
265
+ })
288
266
  }) && $.f)({}));
289
267
  var lumaLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(src_default.bindGroupLayout({
290
268
  input: { texture: texture2d(f32) },
@@ -3,7 +3,7 @@ import { r as toneRemap } from "./tone-DPUvX6X0.js";
3
3
  import { r as geom_exports, t as aspectOf } from "./geom-90G-d_hc.js";
4
4
  import { n as domainWarp2 } from "./fields-CC0756V2.js";
5
5
  import { V as colorStopsPropConfig, t as animatedTime } from "./porters-DUtQounc.js";
6
- import { d as mxNoiseFloat3, p as noise_exports } from "./noise-Bd6IGS0W.js";
6
+ import { f as mxNoiseFloat3, m as noise_exports } from "./noise-DX5Y_I--.js";
7
7
  import { t as mixStopsOrColorsExpr } from "./noiseColor-DYhX5Js1.js";
8
8
  import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B-zNWNdd.js";
9
9
  const plasmaTone = toneRemap({
@@ -1,7 +1,7 @@
1
1
  import { At as max, Bt as sin, Et as exp2, G as mixColorsLinear, Gt as data_exports, Ht as sqrt, It as reflect, K as mixColorsVariants, Mt as mix, Nt as normalize, Pt as pow, St as cos, Vt as smoothstep, _t as abs, at as std_exports, cn as vec4f, gt as select, h as call, on as vec3f, rn as vec2f, rt as src_default, un as f32, wt as dot, x as vec4, xt as clamp, y as floatE } from "./edges-CD7gCAto.js";
2
2
  import { t as DEG_TO_RAD$1 } from "./constants-DoOzbl5b.js";
3
3
  import { J as mixColorStopsRuntime, V as colorStopsPropConfig, t as animatedTime } from "./porters-DUtQounc.js";
4
- import { p as noise_exports, u as mxNoiseFloat2 } from "./noise-Bd6IGS0W.js";
4
+ import { d as mxNoiseFloat2, m as noise_exports } from "./noise-DX5Y_I--.js";
5
5
  import { C as sdf_exports } from "./device-B0ZwBfOg.js";
6
6
  import { n as lighting_exports } from "./lighting-D3jc6qOc.js";
7
7
  import { i as shapeEffectBoundingBoxDeclaration, n as sdf3d_exports } from "./sdf3d-CP87OlsQ.js";
@@ -1,5 +1,5 @@
1
1
  import { At as max, Dt as floor, at as std_exports, cn as vec4f, f as ZERO, h as call, rn as vec2f, rt as src_default, un as f32 } from "./edges-CD7gCAto.js";
2
- import { o as hash11, p as noise_exports } from "./noise-Bd6IGS0W.js";
2
+ import { m as noise_exports, o as hash11 } from "./noise-DX5Y_I--.js";
3
3
  import { c as reveal_exports, i as directionalCoord, n as applyReveal, s as revealMask } from "./reveal-DhktaT1C.js";
4
4
  import { i as transformBoolean } from "./transformations-B-zNWNdd.js";
5
5
  const randomBarsMask = src_default.fn([
@@ -1,6 +1,7 @@
1
- import { At as max, Bt as sin, Dt as floor, Gt as data_exports, Jt as texture2d, Mt as mix, Nt as normalize, Pt as pow, R as colorMixing_exports, St as cos, Tt as exp, Vt as smoothstep, Yt as textureStorage2d, an as vec2u, at as std_exports, cn as vec4f, dn as i32, en as struct, f as ZERO, fn as u32, gt as select, h as call, jt as min, lt as textureStore, on as vec3f, ot as textureDimensions, qt as arrayOf, rn as vec2f, rt as src_default, st as textureLoad, un as f32, wt as dot, x as vec4, xt as clamp, y as floatE } from "./edges-CD7gCAto.js";
1
+ import { At as max, Bt as sin, Gt as data_exports, Jt as texture2d, Mt as mix, Nt as normalize, Pt as pow, R as colorMixing_exports, St as cos, Tt as exp, Vt as smoothstep, Yt as textureStorage2d, an as vec2u, at as std_exports, cn as vec4f, dn as i32, en as struct, f as ZERO, fn as u32, gt as select, h as call, jt as min, lt as textureStore, on as vec3f, ot as textureDimensions, qt as arrayOf, rn as vec2f, rt as src_default, st as textureLoad, un as f32, wt as dot, x as vec4, xt as clamp, y as floatE } from "./edges-CD7gCAto.js";
2
2
  import { t as DEG_TO_RAD } from "./constants-DoOzbl5b.js";
3
3
  import { O as createLateBoundChildInput } from "./porters-DUtQounc.js";
4
+ import { m as noise_exports, s as hash12 } from "./noise-DX5Y_I--.js";
4
5
  import { M as createGuardedCompute, N as createPingPongPair, P as createStateBuffer } from "./device-B0ZwBfOg.js";
5
6
  import { a as transformColor, i as transformBoolean, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B-zNWNdd.js";
6
7
  import { n as createPointerVelocityTracker } from "./pointer-DGDGF-yO.js";
@@ -1958,8 +1959,7 @@ const reactionKernelChild = makeReactionKernel(reactionChildLayout, nbrStateChil
1958
1959
  const seedKernel = src_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
1959
1960
  "use gpu";
1960
1961
  const idx = __tsover_add(__tsover_mul(cy, u32(N)), cx);
1961
- const s = __tsover_mul(sin(__tsover_add(__tsover_mul(f32(cx), 12.9898), __tsover_mul(f32(cy), 78.233))), 43758.5453);
1962
- const h = __tsover_sub(s, floor(s));
1962
+ const h = hash12(vec2f(f32(cx), f32(cy)));
1963
1963
  const vSeed = select(f32(0), f32(1), h < SEED_DENSITY);
1964
1964
  seedLayout.$.stateBuf[idx] = vec2f(1, vSeed);
1965
1965
  }), {
@@ -1999,69 +1999,39 @@ const seedKernel = src_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThi
1999
1999
  ],
2000
2000
  [
2001
2001
  13,
2002
- "s",
2002
+ "h",
2003
2003
  [
2004
- 1,
2004
+ 6,
2005
2005
  [
2006
+ 7,
2007
+ "noise",
2008
+ "hash12"
2009
+ ],
2010
+ [[
2006
2011
  6,
2007
2012
  [
2008
2013
  7,
2009
- "std",
2010
- "sin"
2014
+ "d",
2015
+ "vec2f"
2011
2016
  ],
2012
2017
  [[
2013
- 1,
2018
+ 6,
2014
2019
  [
2015
- 1,
2016
- [
2017
- 6,
2018
- [
2019
- 7,
2020
- "d",
2021
- "f32"
2022
- ],
2023
- ["cx"]
2024
- ],
2025
- "*",
2026
- [5, "12.9898"]
2020
+ 7,
2021
+ "d",
2022
+ "f32"
2027
2023
  ],
2028
- "+",
2024
+ ["cx"]
2025
+ ], [
2026
+ 6,
2029
2027
  [
2030
- 1,
2031
- [
2032
- 6,
2033
- [
2034
- 7,
2035
- "d",
2036
- "f32"
2037
- ],
2038
- ["cy"]
2039
- ],
2040
- "*",
2041
- [5, "78.233"]
2042
- ]
2028
+ 7,
2029
+ "d",
2030
+ "f32"
2031
+ ],
2032
+ ["cy"]
2043
2033
  ]]
2044
- ],
2045
- "*",
2046
- [5, "43758.5453"]
2047
- ]
2048
- ],
2049
- [
2050
- 13,
2051
- "h",
2052
- [
2053
- 1,
2054
- "s",
2055
- "-",
2056
- [
2057
- 6,
2058
- [
2059
- 7,
2060
- "std",
2061
- "floor"
2062
- ],
2063
- ["s"]
2064
- ]
2034
+ ]]
2065
2035
  ]
2066
2036
  ],
2067
2037
  [
@@ -2132,6 +2102,7 @@ const seedKernel = src_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThi
2132
2102
  "externalNames": [
2133
2103
  "d",
2134
2104
  "N",
2105
+ "noise",
2135
2106
  "std",
2136
2107
  "SEED_DENSITY",
2137
2108
  "seedLayout"
@@ -2140,6 +2111,7 @@ const seedKernel = src_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThi
2140
2111
  externals: () => ({
2141
2112
  d: data_exports,
2142
2113
  N,
2114
+ noise: noise_exports,
2143
2115
  std: std_exports,
2144
2116
  SEED_DENSITY,
2145
2117
  seedLayout
@@ -1,6 +1,6 @@
1
1
  import { Gt as data_exports, Tt as exp, at as std_exports, h as call, rn as vec2f, rt as src_default, un as f32 } from "./edges-CD7gCAto.js";
2
2
  import { t as animatedTime } from "./porters-DUtQounc.js";
3
- import { _ as scratches12, p as noise_exports } from "./noise-Bd6IGS0W.js";
3
+ import { m as noise_exports, v as scratches12 } from "./noise-DX5Y_I--.js";
4
4
  import { n as toneAndColorExpr } from "./noiseColor-DYhX5Js1.js";
5
5
  import { n as noiseColorPropsAB, r as noiseSpeedProp } from "./noiseColor-DRDY44sf.js";
6
6
  const scratchesField = src_default.fn([
@@ -2,7 +2,7 @@ import { h as call, rn as vec2f, rt as src_default, un as f32 } from "./edges-CD
2
2
  import { r as toneRemap } from "./tone-DPUvX6X0.js";
3
3
  import { i as fields_exports, o as timeAxisDomain, t as aspectScaledDomain } from "./fields-CC0756V2.js";
4
4
  import { t as animatedTime } from "./porters-DUtQounc.js";
5
- import { d as mxNoiseFloat3, p as noise_exports } from "./noise-Bd6IGS0W.js";
5
+ import { f as mxNoiseFloat3, m as noise_exports } from "./noise-DX5Y_I--.js";
6
6
  import { t as mixStopsOrColorsExpr } from "./noiseColor-DYhX5Js1.js";
7
7
  import { t as noiseColorProps } from "./noiseColor-DRDY44sf.js";
8
8
  var simplexTone = toneRemap({
@@ -1,5 +1,5 @@
1
- import { v as stone12 } from "./noise-Bd6IGS0W.js";
2
- import { n as applyNoiseReliefExpr, t as reliefStylizeProps } from "./noiseStylize-CkeVSB9C.js";
1
+ import { y as stone12 } from "./noise-DX5Y_I--.js";
2
+ import { n as applyNoiseReliefExpr, t as reliefStylizeProps } from "./noiseStylize-BZD5cOJl.js";
3
3
  const componentDefinition = {
4
4
  name: "Stone",
5
5
  boundingBoxDeclaration: { aspectRatio: null },
@@ -1,6 +1,6 @@
1
1
  import { At as max, Bt as sin, Dt as floor, Et as exp2, Gt as data_exports, I as unpremultiplyAlpha, Mt as mix, Nt as normalize, Pt as pow, St as cos, Tt as exp, Vt as smoothstep, Yt as textureStorage2d, _t as abs, an as vec2u, at as std_exports, cn as vec4f, en as struct, f as ZERO, fn as u32, gt as select, h as call, i as edgeMirrorUV, jt as min, lt as textureStore, o as edgeWrapUV, on as vec3f, qt as arrayOf, rn as vec2f, rt as src_default, s as edges_exports, un as f32, wt as dot, x as vec4, xt as clamp } from "./edges-CD7gCAto.js";
2
2
  import { s as TWO_PI$1, t as DEG_TO_RAD$1 } from "./constants-DoOzbl5b.js";
3
- import { p as noise_exports, u as mxNoiseFloat2 } from "./noise-Bd6IGS0W.js";
3
+ import { d as mxNoiseFloat2, m as noise_exports } from "./noise-DX5Y_I--.js";
4
4
  import { M as createGuardedCompute, N as createPingPongPair, P as createStateBuffer, t as isMobileGpuViewport } from "./device-B0ZwBfOg.js";
5
5
  import { a as transformColor, s as transformEdges } from "./transformations-B-zNWNdd.js";
6
6
  var WAVE_GRID = 256;
@@ -1,8 +1,9 @@
1
1
  import { Bt as sin, Dt as floor, Gt as data_exports, I as unpremultiplyAlpha, Mt as mix, Ot as fract, St as cos, Vt as smoothstep, Zt as mod, at as std_exports, cn as vec4f, f as ZERO, h as call, on as vec3f, rn as vec2f, rt as src_default, un as f32, wt as dot, xt as clamp, y as floatE } from "./edges-CD7gCAto.js";
2
+ import { m as noise_exports, s as hash12 } from "./noise-DX5Y_I--.js";
2
3
  var FIELD_LINES = 487;
3
4
  var hash2D = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p) => {
4
5
  "use gpu";
5
- return fract(__tsover_mul(sin(dot(p, vec2f(12.9898, 78.233))), 43758.5453));
6
+ return hash12(p);
6
7
  }), {
7
8
  v: 1,
8
9
  name: void 0,
@@ -15,46 +16,14 @@ var hash2D = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__
15
16
  6,
16
17
  [
17
18
  7,
18
- "std",
19
- "fract"
19
+ "noise",
20
+ "hash12"
20
21
  ],
21
- [[
22
- 1,
23
- [
24
- 6,
25
- [
26
- 7,
27
- "std",
28
- "sin"
29
- ],
30
- [[
31
- 6,
32
- [
33
- 7,
34
- "std",
35
- "dot"
36
- ],
37
- ["p", [
38
- 6,
39
- [
40
- 7,
41
- "d",
42
- "vec2f"
43
- ],
44
- [[5, "12.9898"], [5, "78.233"]]
45
- ]]
46
- ]]
47
- ],
48
- "*",
49
- [5, "43758.5453"]
50
- ]]
22
+ ["p"]
51
23
  ]]]],
52
- "externalNames": ["std", "d"]
24
+ "externalNames": ["noise"]
53
25
  },
54
- externals: () => ({
55
- std: std_exports,
56
- d: data_exports
57
- })
26
+ externals: () => ({ noise: noise_exports })
58
27
  }) && $.f)({}));
59
28
  var smoothNoise2D = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p) => {
60
29
  "use gpu";
@@ -303,8 +272,8 @@ const vhsSampleUVs = src_default.fn([
303
272
  const t = __tsover_mul(time, speed);
304
273
  const burst = smoothstep(.45, .8, smoothNoise2D(vec2f(__tsover_mul(t, .4), 0)));
305
274
  const rowInt = floor(__tsover_mul(uv.y, FIELD_LINES));
306
- const h0 = __tsover_mul(__tsover_sub(fract(__tsover_mul(sin(__tsover_add(__tsover_mul(rowInt, 12.9898), __tsover_mul(t, 78.233))), 43758.5453)), .5), 2);
307
- const h1 = __tsover_mul(__tsover_sub(fract(__tsover_mul(sin(__tsover_add(__tsover_mul(rowInt, 12.9898), __tsover_mul(__tsover_add(t, 69.42), 78.233))), 43758.5453)), .5), 2);
275
+ const h0 = __tsover_mul(__tsover_sub(hash12(vec2f(rowInt, t)), .5), 2);
276
+ const h1 = __tsover_mul(__tsover_sub(hash12(vec2f(rowInt, __tsover_add(t, 69.42))), .5), 2);
308
277
  const fineGate = __tsover_add(.25, __tsover_mul(burst, .75));
309
278
  const chromaRowOffset = __tsover_mul(__tsover_mul(__tsover_mul(h0, scanlineNoise), .008), fineGate);
310
279
  const lumaRowOffset = __tsover_mul(__tsover_mul(__tsover_mul(h1, scanlineNoise), .004), fineGate);
@@ -425,37 +394,17 @@ const vhsSampleUVs = src_default.fn([
425
394
  6,
426
395
  [
427
396
  7,
428
- "std",
429
- "fract"
397
+ "noise",
398
+ "hash12"
430
399
  ],
431
400
  [[
432
- 1,
401
+ 6,
433
402
  [
434
- 6,
435
- [
436
- 7,
437
- "std",
438
- "sin"
439
- ],
440
- [[
441
- 1,
442
- [
443
- 1,
444
- "rowInt",
445
- "*",
446
- [5, "12.9898"]
447
- ],
448
- "+",
449
- [
450
- 1,
451
- "t",
452
- "*",
453
- [5, "78.233"]
454
- ]
455
- ]]
403
+ 7,
404
+ "d",
405
+ "vec2f"
456
406
  ],
457
- "*",
458
- [5, "43758.5453"]
407
+ ["rowInt", "t"]
459
408
  ]]
460
409
  ],
461
410
  "-",
@@ -476,42 +425,22 @@ const vhsSampleUVs = src_default.fn([
476
425
  6,
477
426
  [
478
427
  7,
479
- "std",
480
- "fract"
428
+ "noise",
429
+ "hash12"
481
430
  ],
482
431
  [[
483
- 1,
432
+ 6,
484
433
  [
485
- 6,
486
- [
487
- 7,
488
- "std",
489
- "sin"
490
- ],
491
- [[
492
- 1,
493
- [
494
- 1,
495
- "rowInt",
496
- "*",
497
- [5, "12.9898"]
498
- ],
499
- "+",
500
- [
501
- 1,
502
- [
503
- 1,
504
- "t",
505
- "+",
506
- [5, "69.42"]
507
- ],
508
- "*",
509
- [5, "78.233"]
510
- ]
511
- ]]
434
+ 7,
435
+ "d",
436
+ "vec2f"
512
437
  ],
513
- "*",
514
- [5, "43758.5453"]
438
+ ["rowInt", [
439
+ 1,
440
+ "t",
441
+ "+",
442
+ [5, "69.42"]
443
+ ]]
515
444
  ]]
516
445
  ],
517
446
  "-",
@@ -957,14 +886,16 @@ const vhsSampleUVs = src_default.fn([
957
886
  "std",
958
887
  "smoothNoise2D",
959
888
  "d",
960
- "FIELD_LINES"
889
+ "FIELD_LINES",
890
+ "noise"
961
891
  ]
962
892
  },
963
893
  externals: () => ({
964
894
  std: std_exports,
965
895
  smoothNoise2D,
966
896
  d: data_exports,
967
- FIELD_LINES
897
+ FIELD_LINES,
898
+ noise: noise_exports
968
899
  })
969
900
  }) && $.f)({}));
970
901
  const vhsAcBeat = src_default.fn([
@@ -1,7 +1,7 @@
1
1
  import { At as max, Bt as sin, Gt as data_exports, It as reflect, Lt as refract, Mt as mix, Nt as normalize, Pt as pow, St as cos, Tt as exp, Vt as smoothstep, _t as abs, at as std_exports, cn as vec4f, gt as select, h as call, kt as length, on as vec3f, rn as vec2f, rt as src_default, un as f32, wt as dot, x as vec4, xt as clamp, y as floatE } from "./edges-CD7gCAto.js";
2
2
  import { t as DEG_TO_RAD$1 } from "./constants-DoOzbl5b.js";
3
3
  import { t as animatedTime } from "./porters-DUtQounc.js";
4
- import { p as noise_exports, u as mxNoiseFloat2 } from "./noise-Bd6IGS0W.js";
4
+ import { d as mxNoiseFloat2, m as noise_exports } from "./noise-DX5Y_I--.js";
5
5
  import { C as sdf_exports } from "./device-B0ZwBfOg.js";
6
6
  import { n as lighting_exports } from "./lighting-D3jc6qOc.js";
7
7
  import { i as shapeEffectBoundingBoxDeclaration, n as sdf3d_exports } from "./sdf3d-CP87OlsQ.js";
@@ -1,5 +1,5 @@
1
1
  import { F as blend_exports, Gt as data_exports, I as unpremultiplyAlpha, Mt as mix, S as Expr, at as std_exports, cn as vec4f, f as ZERO, gt as select, h as call, jt as min, on as vec3f, rn as vec2f, rt as src_default, un as f32, v as expr, x as vec4, y as floatE } from "./edges-CD7gCAto.js";
2
- import { p as noise_exports, y as value12 } from "./noise-Bd6IGS0W.js";
2
+ import { b as value12, m as noise_exports } from "./noise-DX5Y_I--.js";
3
3
  import { a as transformColor } from "./transformations-B-zNWNdd.js";
4
4
  const watercolorUvBase = src_default.fn([
5
5
  vec2f,
@@ -1,7 +1,7 @@
1
1
  import { h as call, rn as vec2f, rt as src_default, un as f32 } from "./edges-CD7gCAto.js";
2
2
  import { i as fields_exports, t as aspectScaledDomain } from "./fields-CC0756V2.js";
3
3
  import { t as animatedTime } from "./porters-DUtQounc.js";
4
- import { p as noise_exports, x as wavelet12 } from "./noise-Bd6IGS0W.js";
4
+ import { S as wavelet12, m as noise_exports } from "./noise-DX5Y_I--.js";
5
5
  import { n as toneAndColorExpr } from "./noiseColor-DYhX5Js1.js";
6
6
  import { i as noiseToneProps, r as noiseSpeedProp, t as noiseColorProps } from "./noiseColor-DRDY44sf.js";
7
7
  const waveletNoiseField = src_default.fn([
@@ -1,5 +1,5 @@
1
- import { S as wool12 } from "./noise-Bd6IGS0W.js";
2
- import { n as applyNoiseReliefExpr, t as reliefStylizeProps } from "./noiseStylize-CkeVSB9C.js";
1
+ import { C as wool12 } from "./noise-DX5Y_I--.js";
2
+ import { n as applyNoiseReliefExpr, t as reliefStylizeProps } from "./noiseStylize-BZD5cOJl.js";
3
3
  const componentDefinition = {
4
4
  name: "Wool",
5
5
  boundingBoxDeclaration: { aspectRatio: null },