kmcom-nuxt-layers 1.7.9 → 2.1.6

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 (518) hide show
  1. package/layers/animations/nuxt.config.ts +17 -0
  2. package/layers/animations/package.json +6 -0
  3. package/layers/animations/tsconfig.json +7 -0
  4. package/layers/canvas/app/components/ShaderCanvas.vue +125 -0
  5. package/layers/{shader → canvas}/app/composables/useRendererCapabilities.ts +10 -2
  6. package/layers/{shader → canvas}/app/composables/useShaderTime.ts +3 -3
  7. package/layers/canvas/app/types/renderer.ts +50 -0
  8. package/layers/canvas/nuxt.config.ts +189 -0
  9. package/layers/canvas/package.json +22 -0
  10. package/layers/canvas/tsconfig.json +7 -0
  11. package/layers/content/app/components/Blog/Article.vue +12 -6
  12. package/layers/content/app/components/Blog/Card.vue +24 -24
  13. package/layers/content/app/components/Blog/List.vue +8 -11
  14. package/layers/content/app/components/Gallery/AmbientImage.vue +15 -15
  15. package/layers/content/app/components/Gallery/Card.vue +19 -19
  16. package/layers/content/app/components/Gallery/Detail.vue +29 -20
  17. package/layers/content/app/components/Gallery/Grid.vue +8 -11
  18. package/layers/content/app/components/Gallery/ImageDetail.vue +18 -17
  19. package/layers/content/app/components/Gallery/ImagePage.vue +8 -9
  20. package/layers/content/app/components/Gallery/Lightbox.vue +38 -33
  21. package/layers/content/app/components/Gallery/Page.vue +8 -8
  22. package/layers/content/app/components/Gallery/SlugPage.vue +7 -8
  23. package/layers/content/app/components/NuxtContent/Detail.vue +29 -27
  24. package/layers/content/app/components/NuxtContent/List.vue +10 -9
  25. package/layers/content/app/components/NuxtContent/Renderer.vue +4 -4
  26. package/layers/content/app/components/NuxtContent/Surround.vue +3 -3
  27. package/layers/content/app/components/NuxtContent/Toc.vue +5 -5
  28. package/layers/content/app/components/Portfolio/Card.vue +17 -17
  29. package/layers/content/app/components/Portfolio/ColorPalette.vue +11 -11
  30. package/layers/content/app/components/Portfolio/Detail.vue +9 -13
  31. package/layers/content/app/components/Portfolio/ItemPage.vue +8 -9
  32. package/layers/content/app/components/Portfolio/List.vue +10 -13
  33. package/layers/content/app/components/Portfolio/Page.vue +8 -8
  34. package/layers/content/app/components/Portfolio/Typography.vue +4 -4
  35. package/layers/content/app/components/content/Figure.vue +14 -14
  36. package/layers/content/app/composables/createPortfolioComposables.ts +1 -0
  37. package/layers/content/app/composables/useCollectionItem.ts +4 -1
  38. package/layers/content/app/composables/useCollectionSurround.ts +1 -0
  39. package/layers/content/app/composables/useContentPage.ts +1 -0
  40. package/layers/content/app/composables/useGalleryItems.ts +1 -0
  41. package/layers/content/app/composables/usePortfolioItems.ts +1 -0
  42. package/layers/content/app/types/app-config.d.ts +1 -1
  43. package/layers/content/app/types/content.ts +27 -30
  44. package/layers/content/nuxt.config.ts +4 -3
  45. package/layers/content/package.json +4 -4
  46. package/layers/core/app/components/DiagnosticsPage.vue +203 -203
  47. package/layers/core/app/components/ErrorBoundary.vue +51 -49
  48. package/layers/core/app/components/LoadingScreen.vue +112 -111
  49. package/layers/core/app/composables/useBrowser.ts +2 -1
  50. package/layers/core/app/composables/useCache.ts +4 -2
  51. package/layers/core/app/composables/useErrorLog.ts +7 -10
  52. package/layers/core/app/composables/useFeatures.ts +4 -2
  53. package/layers/core/app/composables/useLoading.ts +1 -0
  54. package/layers/core/app/composables/useNetworkInfo.ts +1 -0
  55. package/layers/core/app/composables/usePWAInfo.ts +4 -3
  56. package/layers/core/app/composables/useRendering.ts +1 -0
  57. package/layers/core/app/composables/useScreen.ts +1 -0
  58. package/layers/core/app/composables/useScrollGuard.ts +2 -1
  59. package/layers/core/app/pages/[...slug].vue +99 -99
  60. package/layers/core/app/plugins/error-handler.ts +1 -1
  61. package/layers/core/app/plugins/feature-detection.client.ts +2 -1
  62. package/layers/core/app/plugins/init.ts +8 -19
  63. package/layers/core/app/plugins/loading.client.ts +4 -2
  64. package/layers/core/app/plugins/scroll-guard.client.ts +4 -4
  65. package/layers/core/app/types/app-config.d.ts +5 -1
  66. package/layers/core/app/types/detection.ts +8 -8
  67. package/layers/core/app/types/index.ts +5 -4
  68. package/layers/core/app/types/loading.ts +3 -3
  69. package/layers/core/app/types/runtime-config.ts +2 -2
  70. package/layers/core/app/types/scroll-guard.ts +2 -2
  71. package/layers/core/app/types/site.ts +43 -0
  72. package/layers/core/app/utils/helpers.ts +4 -0
  73. package/layers/core/nuxt.config.ts +1 -0
  74. package/layers/core/package.json +1 -1
  75. package/layers/feeds/app/app.config.ts +23 -0
  76. package/layers/feeds/app/assets/css/feeds.css +66 -0
  77. package/layers/feeds/app/plugins/feed-head.ts +73 -0
  78. package/layers/feeds/nuxt.config.ts +36 -0
  79. package/layers/feeds/package.json +23 -0
  80. package/layers/feeds/tsconfig.json +7 -0
  81. package/layers/forms/app/components/Form/Contact.vue +1 -0
  82. package/layers/forms/app/components/Form/Field.vue +70 -74
  83. package/layers/forms/app/composables/useFormSchema.ts +2 -0
  84. package/layers/forms/app/config/fields.ts +1 -0
  85. package/layers/forms/app/types/app-config.d.ts +1 -1
  86. package/layers/forms/app/types/fields.ts +1 -1
  87. package/layers/forms/nuxt.config.ts +4 -9
  88. package/layers/forms/package.json +4 -9
  89. package/layers/layout/app/assets/css/layout/grids.css +12 -12
  90. package/layers/layout/app/assets/css/layout/modes/fluid.css +10 -10
  91. package/layers/layout/app/components/Layout/Container.vue +34 -34
  92. package/layers/layout/app/components/Layout/Grid/Debug.vue +55 -55
  93. package/layers/layout/app/components/Layout/Grid/Item.vue +239 -231
  94. package/layers/layout/app/components/Layout/Main.vue +27 -23
  95. package/layers/layout/app/components/Layout/Page/Container.vue +71 -67
  96. package/layers/layout/app/components/Layout/Page/Header.vue +22 -21
  97. package/layers/layout/app/components/Layout/Page/index.vue +1 -0
  98. package/layers/layout/app/components/Layout/Section/Gallery.vue +49 -48
  99. package/layers/layout/app/components/Layout/Section/Grid.vue +29 -29
  100. package/layers/layout/app/components/Layout/Section/Hero.vue +31 -29
  101. package/layers/layout/app/components/Layout/Section/Sidebar.vue +48 -48
  102. package/layers/layout/app/components/Layout/Section/Split.vue +28 -28
  103. package/layers/layout/app/components/Layout/Section/Stack.vue +39 -37
  104. package/layers/layout/app/components/Layout/Section/Title.vue +21 -20
  105. package/layers/layout/app/composables/GridPlacement.ts +1 -1
  106. package/layers/layout/app/composables/useGridConfig.ts +2 -1
  107. package/layers/layout/app/types/app-config.d.ts +2 -1
  108. package/layers/layout/app/types/layouts.ts +4 -4
  109. package/layers/layout/nuxt.config.ts +4 -1
  110. package/layers/mailer/nuxt.config.ts +26 -0
  111. package/layers/mailer/package.json +15 -0
  112. package/layers/mailer/tsconfig.json +7 -0
  113. package/layers/motion/app/components/Motion/index.vue +5 -5
  114. package/layers/motion/nuxt.config.ts +6 -22
  115. package/layers/motion/package.json +0 -5
  116. package/layers/navigation/app/app.config.ts +38 -0
  117. package/layers/navigation/app/assets/css/navigation.css +3 -0
  118. package/layers/navigation/app/components/Links/Group.vue +49 -0
  119. package/layers/navigation/app/components/Links/Named.vue +33 -0
  120. package/layers/navigation/app/components/Mast/Footer.vue +13 -0
  121. package/layers/{ui → navigation}/app/components/Mast/Header.vue +2 -2
  122. package/layers/{ui → navigation}/app/components/Mast/Nav.vue +2 -2
  123. package/layers/navigation/app/components/Mast/NavModal.vue +76 -0
  124. package/layers/{ui → navigation}/app/composables/mastNav.ts +7 -4
  125. package/layers/{ui → navigation}/app/composables/toast.ts +1 -0
  126. package/layers/{ui → navigation}/app/composables/useSite.ts +1 -0
  127. package/layers/navigation/app/types/nav.ts +11 -0
  128. package/layers/{ui → navigation}/app/utils/createModal.ts +2 -1
  129. package/layers/navigation/nuxt.config.ts +19 -0
  130. package/layers/navigation/package.json +6 -0
  131. package/layers/navigation/tsconfig.json +7 -0
  132. package/layers/page-transitions/app/app.config.ts +15 -0
  133. package/layers/page-transitions/app/composables/usePageTransition.ts +32 -0
  134. package/layers/page-transitions/app/plugins/page-transitions.client.ts +14 -0
  135. package/layers/page-transitions/nuxt.config.ts +17 -0
  136. package/layers/page-transitions/package.json +6 -0
  137. package/layers/page-transitions/tsconfig.json +7 -0
  138. package/layers/routing/app/composables/{useFeatures.ts → useFeatureFlags.ts} +1 -1
  139. package/layers/routing/app/composables/useRoutingConfig.ts +5 -6
  140. package/layers/routing/app/middleware/01.maintenance.global.ts +1 -1
  141. package/layers/routing/app/middleware/02.governance.global.ts +2 -2
  142. package/layers/routing/app/plugins/feature-flags.client.ts +4 -4
  143. package/layers/routing/app/plugins/scroll-routing.client.ts +4 -3
  144. package/layers/routing/app/types/app-config.d.ts +2 -1
  145. package/layers/routing/app/types/route-meta.d.ts +1 -1
  146. package/layers/routing/app/types/routing.ts +5 -2
  147. package/layers/routing/app/utils/resolveRoute.ts +2 -2
  148. package/layers/routing/nuxt.config.ts +6 -2
  149. package/layers/scripts/app/app.config.ts +44 -0
  150. package/layers/scripts/app/composables/useAnalytics.ts +49 -0
  151. package/layers/scripts/app/composables/useGtm.ts +21 -0
  152. package/layers/scripts/app/composables/useScriptLoader.ts +31 -0
  153. package/layers/scripts/app/composables/useScriptsConsent.ts +23 -0
  154. package/layers/scripts/app/composables/useYoutubeEmbed.ts +14 -0
  155. package/layers/scripts/nuxt.config.ts +22 -0
  156. package/layers/scripts/package.json +14 -0
  157. package/layers/scripts/tsconfig.json +7 -0
  158. package/layers/{motion/app/types/app-config.d.ts → scroll/app/app.config.ts} +16 -1
  159. package/layers/scroll/app/components/Motion/HorizontalScroll.vue +61 -0
  160. package/layers/scroll/app/components/Motion/Parallax.vue +76 -0
  161. package/layers/scroll/app/components/Motion/PinnedSection.vue +77 -0
  162. package/layers/scroll/app/components/Motion/ScrollLink.vue +50 -0
  163. package/layers/scroll/app/components/Motion/ScrollProgress.vue +85 -0
  164. package/layers/scroll/app/components/Motion/ScrollScene.vue +121 -0
  165. package/layers/{motion → scroll}/app/components/Motion/ScrollStats.vue +51 -50
  166. package/layers/scroll/app/components/Motion/ScrollStep.vue +44 -0
  167. package/layers/{motion → scroll}/app/composables/useGsap.ts +0 -6
  168. package/layers/{motion → scroll}/app/composables/useScrollSteps.ts +2 -5
  169. package/layers/{motion → scroll}/app/composables/useSectionProgress.ts +14 -7
  170. package/layers/{motion → scroll}/app/composables/useSmoothScroll.ts +6 -37
  171. package/layers/{motion → scroll}/app/plugins/locomotive-scroll.client.ts +3 -2
  172. package/layers/scroll/nuxt.config.ts +33 -0
  173. package/layers/scroll/package.json +11 -0
  174. package/layers/scroll/tsconfig.json +7 -0
  175. package/layers/seo/app/app.config.ts +30 -0
  176. package/layers/seo/app/composables/useSeoConfig.ts +14 -0
  177. package/layers/seo/nuxt.config.ts +34 -0
  178. package/layers/seo/package.json +14 -0
  179. package/layers/seo/tsconfig.json +7 -0
  180. package/layers/shader/app/components/Effect/Bloom.vue +2 -2
  181. package/layers/shader/app/components/Effect/ChromaticAberration.vue +2 -2
  182. package/layers/shader/app/components/Effect/PostProcessing.vue +14 -10
  183. package/layers/shader/app/components/Material/AmbientAurora.client.vue +162 -158
  184. package/layers/shader/app/components/Material/AmbientFlow.client.vue +165 -161
  185. package/layers/shader/app/components/Material/AmbientGradientMesh.client.vue +179 -162
  186. package/layers/shader/app/components/Material/AmbientNebula.client.vue +167 -163
  187. package/layers/shader/app/components/Material/AmbientOcean.client.vue +154 -150
  188. package/layers/shader/app/components/Material/Fresnel.client.vue +78 -75
  189. package/layers/shader/app/components/Material/Gradient.client.vue +175 -173
  190. package/layers/shader/app/components/Material/Image.client.vue +228 -225
  191. package/layers/shader/app/components/Material/Node.client.vue +66 -63
  192. package/layers/shader/app/components/Material/Noise.client.vue +128 -124
  193. package/layers/shader/app/components/Mesh/Plane.vue +20 -18
  194. package/layers/shader/app/components/Node/Color.client.vue +47 -45
  195. package/layers/shader/app/components/Node/Fresnel.client.vue +47 -47
  196. package/layers/shader/app/components/Node/Gradient.client.vue +120 -70
  197. package/layers/shader/app/components/Node/Mix.client.vue +41 -39
  198. package/layers/shader/app/components/Node/Noise.client.vue +91 -83
  199. package/layers/shader/app/components/Pipeline/ACESTonemap.client.vue +7 -10
  200. package/layers/shader/app/components/Pipeline/AddBlend.client.vue +33 -19
  201. package/layers/shader/app/components/Pipeline/AgedFilm.client.vue +61 -40
  202. package/layers/shader/app/components/Pipeline/Aurora.client.vue +92 -56
  203. package/layers/shader/app/components/Pipeline/BilinearGradient.client.vue +65 -34
  204. package/layers/shader/app/components/Pipeline/BillowNoise.client.vue +56 -32
  205. package/layers/shader/app/components/Pipeline/BrightnessContrast.client.vue +36 -20
  206. package/layers/shader/app/components/Pipeline/CellularNoise.client.vue +55 -31
  207. package/layers/shader/app/components/Pipeline/ChannelMixer.client.vue +62 -34
  208. package/layers/shader/app/components/Pipeline/ChebyshevNoiseField.client.vue +77 -50
  209. package/layers/shader/app/components/Pipeline/Checkerboard.client.vue +50 -31
  210. package/layers/shader/app/components/Pipeline/ChromaticAberration.client.vue +49 -33
  211. package/layers/shader/app/components/Pipeline/ChromaticScreenWaves.client.vue +61 -36
  212. package/layers/shader/app/components/Pipeline/Circle.client.vue +53 -30
  213. package/layers/shader/app/components/Pipeline/Clouds.client.vue +86 -48
  214. package/layers/shader/app/components/Pipeline/ColorBurnBlend.client.vue +34 -19
  215. package/layers/shader/app/components/Pipeline/ColorDodgeBlend.client.vue +34 -19
  216. package/layers/shader/app/components/Pipeline/ColourRamp.client.vue +76 -46
  217. package/layers/shader/app/components/Pipeline/ComplexPlaneField.client.vue +80 -50
  218. package/layers/shader/app/components/Pipeline/ConicGradient.client.vue +46 -28
  219. package/layers/shader/app/components/Pipeline/CosinePalette.client.vue +80 -53
  220. package/layers/shader/app/components/Pipeline/CoverageAlpha.client.vue +12 -14
  221. package/layers/shader/app/components/Pipeline/Cross.client.vue +66 -37
  222. package/layers/shader/app/components/Pipeline/CurlNoise.client.vue +58 -35
  223. package/layers/shader/app/components/Pipeline/DarkenBlend.client.vue +34 -19
  224. package/layers/shader/app/components/Pipeline/DayNightCycle.client.vue +65 -39
  225. package/layers/shader/app/components/Pipeline/Desaturate.client.vue +23 -16
  226. package/layers/shader/app/components/Pipeline/DiagonalGradient.client.vue +50 -29
  227. package/layers/shader/app/components/Pipeline/DiamondGradient.client.vue +47 -29
  228. package/layers/shader/app/components/Pipeline/DifferenceBlend.client.vue +34 -19
  229. package/layers/shader/app/components/Pipeline/DivideBlend.client.vue +34 -19
  230. package/layers/shader/app/components/Pipeline/DomainWarpedNoise.client.vue +79 -37
  231. package/layers/shader/app/components/Pipeline/Dots.client.vue +70 -34
  232. package/layers/shader/app/components/Pipeline/DuoTone.client.vue +40 -26
  233. package/layers/shader/app/components/Pipeline/ExclusionBlend.client.vue +38 -19
  234. package/layers/shader/app/components/Pipeline/ExponentialFog.client.vue +52 -35
  235. package/layers/shader/app/components/Pipeline/Exposure.client.vue +22 -16
  236. package/layers/shader/app/components/Pipeline/FBMNoise.client.vue +62 -39
  237. package/layers/shader/app/components/Pipeline/FilmBurn.client.vue +60 -38
  238. package/layers/shader/app/components/Pipeline/FilmGrain.client.vue +53 -31
  239. package/layers/shader/app/components/Pipeline/FisheyeRay.client.vue +39 -28
  240. package/layers/shader/app/components/Pipeline/Flame.client.vue +59 -35
  241. package/layers/shader/app/components/Pipeline/FocalGradient.client.vue +56 -33
  242. package/layers/shader/app/components/Pipeline/Gamma.client.vue +21 -16
  243. package/layers/shader/app/components/Pipeline/GodRays.client.vue +76 -42
  244. package/layers/shader/app/components/Pipeline/GradientNoise.client.vue +57 -32
  245. package/layers/shader/app/components/Pipeline/Grain.client.vue +84 -47
  246. package/layers/shader/app/components/Pipeline/Grid.client.vue +56 -33
  247. package/layers/shader/app/components/Pipeline/Halation.client.vue +52 -34
  248. package/layers/shader/app/components/Pipeline/Halftone.client.vue +34 -23
  249. package/layers/shader/app/components/Pipeline/HardLightBlend.client.vue +33 -19
  250. package/layers/shader/app/components/Pipeline/Haze.client.vue +57 -36
  251. package/layers/shader/app/components/Pipeline/Hexagon.client.vue +54 -31
  252. package/layers/shader/app/components/Pipeline/Hue.client.vue +20 -16
  253. package/layers/shader/app/components/Pipeline/Invert.client.vue +6 -10
  254. package/layers/shader/app/components/Pipeline/LensFlare.client.vue +56 -37
  255. package/layers/shader/app/components/Pipeline/LightenBlend.client.vue +31 -19
  256. package/layers/shader/app/components/Pipeline/LinearGradient.client.vue +36 -28
  257. package/layers/shader/app/components/Pipeline/LinearGradient4.client.vue +65 -43
  258. package/layers/shader/app/components/Pipeline/LinearToSRGB.client.vue +26 -20
  259. package/layers/shader/app/components/Pipeline/Marble.client.vue +97 -57
  260. package/layers/shader/app/components/Pipeline/MixBlend.client.vue +45 -35
  261. package/layers/shader/app/components/Pipeline/MonochromeTint.client.vue +40 -25
  262. package/layers/shader/app/components/Pipeline/MultiplyBlend.client.vue +33 -19
  263. package/layers/shader/app/components/Pipeline/NoisyGradient.client.vue +83 -42
  264. package/layers/shader/app/components/Pipeline/NoisyGradientBlend.client.vue +141 -81
  265. package/layers/shader/app/components/Pipeline/OverlayBlend.client.vue +33 -19
  266. package/layers/shader/app/components/Pipeline/PaperTexture.client.vue +47 -30
  267. package/layers/shader/app/components/Pipeline/Polygon.client.vue +74 -37
  268. package/layers/shader/app/components/Pipeline/Posterise.client.vue +21 -16
  269. package/layers/shader/app/components/Pipeline/RadialGradient.client.vue +45 -30
  270. package/layers/shader/app/components/Pipeline/RayAutoOrbit.client.vue +43 -30
  271. package/layers/shader/app/components/Pipeline/RayMouseOrbit.client.vue +60 -47
  272. package/layers/shader/app/components/Pipeline/RayRotateX.client.vue +28 -20
  273. package/layers/shader/app/components/Pipeline/RayRotateY.client.vue +28 -20
  274. package/layers/shader/app/components/Pipeline/RayRotateZ.client.vue +28 -20
  275. package/layers/shader/app/components/Pipeline/RayTiltBasis.client.vue +55 -34
  276. package/layers/shader/app/components/Pipeline/RaymarchTunnel.client.vue +132 -88
  277. package/layers/shader/app/components/Pipeline/Rectangle.client.vue +78 -37
  278. package/layers/shader/app/components/Pipeline/ReinhardTonemap.client.vue +12 -14
  279. package/layers/shader/app/components/Pipeline/RidgedNoise.client.vue +54 -31
  280. package/layers/shader/app/components/Pipeline/Ring.client.vue +69 -34
  281. package/layers/shader/app/components/Pipeline/RingField.client.vue +63 -43
  282. package/layers/shader/app/components/Pipeline/RisographGrain.client.vue +66 -32
  283. package/layers/shader/app/components/Pipeline/RotatedGradientBlend.client.vue +73 -48
  284. package/layers/shader/app/components/Pipeline/SDFColourMask.client.vue +31 -25
  285. package/layers/shader/app/components/Pipeline/SDFRadialMask.client.vue +31 -21
  286. package/layers/shader/app/components/Pipeline/SRGBToLinear.client.vue +25 -20
  287. package/layers/shader/app/components/Pipeline/Saturation.client.vue +22 -16
  288. package/layers/shader/app/components/Pipeline/Scanlines.client.vue +42 -26
  289. package/layers/shader/app/components/Pipeline/ScreenBlend.client.vue +33 -19
  290. package/layers/shader/app/components/Pipeline/ShaderDebugger.client.vue +58 -45
  291. package/layers/shader/app/components/Pipeline/SimplexNoise.client.vue +59 -37
  292. package/layers/shader/app/components/Pipeline/SkyAtmosphere.client.vue +87 -54
  293. package/layers/shader/app/components/Pipeline/SoftLightBlend.client.vue +33 -19
  294. package/layers/shader/app/components/Pipeline/SolidColour.client.vue +24 -16
  295. package/layers/shader/app/components/Pipeline/SplitTone.client.vue +58 -34
  296. package/layers/shader/app/components/Pipeline/Star.client.vue +73 -37
  297. package/layers/shader/app/components/Pipeline/Starfield.client.vue +68 -34
  298. package/layers/shader/app/components/Pipeline/Stripes.client.vue +64 -36
  299. package/layers/shader/app/components/Pipeline/SubtractBlend.client.vue +33 -19
  300. package/layers/shader/app/components/Pipeline/TanhTonemap.client.vue +25 -19
  301. package/layers/shader/app/components/Pipeline/Threshold.client.vue +23 -17
  302. package/layers/shader/app/components/Pipeline/Tint.client.vue +36 -25
  303. package/layers/shader/app/components/Pipeline/Triangle.client.vue +54 -31
  304. package/layers/shader/app/components/Pipeline/UVAspectCorrect.client.vue +5 -10
  305. package/layers/shader/app/components/Pipeline/UVBreath.client.vue +44 -31
  306. package/layers/shader/app/components/Pipeline/UVBulge.client.vue +35 -21
  307. package/layers/shader/app/components/Pipeline/UVClamp.client.vue +14 -14
  308. package/layers/shader/app/components/Pipeline/UVColumnOffset.client.vue +36 -23
  309. package/layers/shader/app/components/Pipeline/UVFlipX.client.vue +6 -10
  310. package/layers/shader/app/components/Pipeline/UVFlipXY.client.vue +6 -10
  311. package/layers/shader/app/components/Pipeline/UVFlipY.client.vue +6 -10
  312. package/layers/shader/app/components/Pipeline/UVFractBand.client.vue +31 -21
  313. package/layers/shader/app/components/Pipeline/UVMousePull.client.vue +41 -33
  314. package/layers/shader/app/components/Pipeline/UVNoiseRotate.client.vue +65 -46
  315. package/layers/shader/app/components/Pipeline/UVNoiseWarp.client.vue +49 -30
  316. package/layers/shader/app/components/Pipeline/UVOrbit.client.vue +37 -29
  317. package/layers/shader/app/components/Pipeline/UVParallax.client.vue +41 -33
  318. package/layers/shader/app/components/Pipeline/UVPixelate.client.vue +21 -16
  319. package/layers/shader/app/components/Pipeline/UVPulse.client.vue +41 -28
  320. package/layers/shader/app/components/Pipeline/UVRipple.client.vue +53 -29
  321. package/layers/shader/app/components/Pipeline/UVRotate.client.vue +40 -32
  322. package/layers/shader/app/components/Pipeline/UVScale.client.vue +33 -25
  323. package/layers/shader/app/components/Pipeline/UVScroll.client.vue +26 -22
  324. package/layers/shader/app/components/Pipeline/UVScrollX.client.vue +20 -16
  325. package/layers/shader/app/components/Pipeline/UVScrollY.client.vue +20 -16
  326. package/layers/shader/app/components/Pipeline/UVShear.client.vue +33 -20
  327. package/layers/shader/app/components/Pipeline/UVSineWarpXY.client.vue +58 -40
  328. package/layers/shader/app/components/Pipeline/UVSwapAxes.client.vue +6 -10
  329. package/layers/shader/app/components/Pipeline/UVTile.client.vue +26 -22
  330. package/layers/shader/app/components/Pipeline/UVTwirl.client.vue +31 -21
  331. package/layers/shader/app/components/Pipeline/UVWarp.client.vue +44 -25
  332. package/layers/shader/app/components/Pipeline/VHSBleed.client.vue +63 -43
  333. package/layers/shader/app/components/Pipeline/ValueNoise.client.vue +57 -32
  334. package/layers/shader/app/components/Pipeline/Vibrance.client.vue +25 -19
  335. package/layers/shader/app/components/Pipeline/Vignette.client.vue +35 -24
  336. package/layers/shader/app/components/Pipeline/VoronoiEdges.client.vue +66 -38
  337. package/layers/shader/app/components/Pipeline/Water.client.vue +78 -39
  338. package/layers/shader/app/components/Pipeline/WaveBendLayer.client.vue +74 -46
  339. package/layers/shader/app/components/Pipeline/WaveColourLayer.client.vue +76 -43
  340. package/layers/shader/app/components/Pipeline/WhiteBalance.client.vue +38 -27
  341. package/layers/shader/app/components/Pipeline/Wood.client.vue +85 -50
  342. package/layers/shader/app/components/Preset/Aurora.client.vue +69 -52
  343. package/layers/shader/app/components/Preset/Flow.client.vue +63 -47
  344. package/layers/shader/app/components/Preset/GradientMesh.client.vue +63 -47
  345. package/layers/shader/app/components/Preset/Nebula.client.vue +65 -47
  346. package/layers/shader/app/components/Preset/Ocean.client.vue +64 -47
  347. package/layers/shader/app/components/Preset/ThemeAurora.client.vue +107 -70
  348. package/layers/shader/app/components/Preset/ThemeBubble.client.vue +108 -71
  349. package/layers/shader/app/components/Preset/ThemeFlow.client.vue +107 -70
  350. package/layers/shader/app/components/Preset/ThemeGradient.client.vue +108 -71
  351. package/layers/shader/app/components/Preset/ThemeLavaLamp.client.vue +107 -70
  352. package/layers/shader/app/components/Preset/ThemePlasma.client.vue +107 -70
  353. package/layers/shader/app/components/Preset/ThemeWave.client.vue +107 -70
  354. package/layers/shader/app/components/Shader/Background.client.vue +169 -163
  355. package/layers/shader/app/components/Shader/Debug.vue +45 -40
  356. package/layers/shader/app/components/Shader/Host.client.vue +120 -121
  357. package/layers/shader/app/components/Shader/Material.client.vue +42 -36
  358. package/layers/shader/app/components/Shader/Pipeline.client.vue +55 -46
  359. package/layers/shader/app/components/Shader/PipelineContext.vue +12 -12
  360. package/layers/shader/app/components/Shader/Runtime.client.vue +42 -37
  361. package/layers/shader/app/composables/useAmbientMaterials.ts +316 -105
  362. package/layers/shader/app/composables/useCSSColourUniform.ts +7 -6
  363. package/layers/shader/app/composables/useCSSFloatUniform.ts +4 -5
  364. package/layers/shader/app/composables/useMousePosition.ts +1 -1
  365. package/layers/shader/app/composables/useShader.ts +5 -3
  366. package/layers/shader/app/composables/useShaderColor.ts +8 -1
  367. package/layers/shader/app/composables/useShaderFloat.ts +3 -1
  368. package/layers/shader/app/composables/useShaderGraph.ts +6 -3
  369. package/layers/shader/app/composables/useShaderPerf.ts +2 -3
  370. package/layers/shader/app/composables/useShaderPipeline.ts +14 -6
  371. package/layers/shader/app/composables/useShaderRuntime.ts +7 -4
  372. package/layers/shader/app/composables/useShaderVec2.ts +4 -0
  373. package/layers/shader/app/composables/useSunDirectionUniform.ts +7 -6
  374. package/layers/shader/app/composables/useTSLNodes.ts +1 -0
  375. package/layers/shader/app/composables/useThemeColors.ts +14 -10
  376. package/layers/shader/app/composables/useUniforms.ts +5 -2
  377. package/layers/shader/app/plugins/shader.client.ts +3 -2
  378. package/layers/shader/app/shaders/common/blend.ts +3 -0
  379. package/layers/shader/app/shaders/common/complex.ts +4 -5
  380. package/layers/shader/app/shaders/common/effects.ts +10 -6
  381. package/layers/shader/app/shaders/common/grain.ts +4 -0
  382. package/layers/shader/app/shaders/common/lighting.ts +4 -1
  383. package/layers/shader/app/shaders/common/math.ts +3 -0
  384. package/layers/shader/app/shaders/common/noise.ts +7 -4
  385. package/layers/shader/app/shaders/common/noiseHelpers.ts +2 -0
  386. package/layers/shader/app/shaders/common/palette.ts +6 -1
  387. package/layers/shader/app/shaders/common/patterns.ts +7 -4
  388. package/layers/shader/app/shaders/common/sdf.ts +3 -1
  389. package/layers/shader/app/shaders/common/shapes.ts +3 -0
  390. package/layers/shader/app/shaders/common/tonemapping.ts +2 -0
  391. package/layers/shader/app/shaders/common/uv.ts +8 -1
  392. package/layers/shader/app/shaders/createMaterial.ts +6 -2
  393. package/layers/shader/app/shaders/layers/aurora.ts +6 -3
  394. package/layers/shader/app/shaders/layers/meshGradient.ts +6 -3
  395. package/layers/shader/app/shaders/layers/paperShading.ts +6 -2
  396. package/layers/shader/app/shaders/layers/shaderGradient.ts +5 -0
  397. package/layers/shader/app/shaders/layers/stripe.ts +6 -3
  398. package/layers/shader/app/shaders/types.ts +1 -0
  399. package/layers/shader/app/types/app-config.d.ts +1 -1
  400. package/layers/shader/app/types/index.ts +4 -4
  401. package/layers/shader/app/types/materials.ts +5 -4
  402. package/layers/shader/app/types/renderer.ts +1 -50
  403. package/layers/shader/app/types/tsl.ts +4 -3
  404. package/layers/shader/app/types/uniforms.ts +3 -2
  405. package/layers/shader/app/utils/tsl/animation.ts +2 -0
  406. package/layers/shader/app/utils/tsl/color.ts +5 -2
  407. package/layers/shader/app/utils/tsl/math.ts +1 -0
  408. package/layers/shader/app/utils/tsl/noise.ts +2 -0
  409. package/layers/shader/app/utils/tsl/oklch.ts +2 -0
  410. package/layers/shader/app/utils/tsl/patterns.ts +2 -0
  411. package/layers/shader/app/utils/tsl/tween.ts +4 -2
  412. package/layers/shader/app/utils/tsl/uv.ts +2 -0
  413. package/layers/shader/nuxt.config.ts +8 -115
  414. package/layers/shader/package.json +3 -9
  415. package/layers/theme/app/assets/css/theme.css +2 -2
  416. package/layers/theme/app/components/ThemePicker/AccentButton.vue +32 -30
  417. package/layers/theme/app/components/ThemePicker/Colors.vue +6 -5
  418. package/layers/theme/app/components/ThemePicker/Menu.vue +23 -23
  419. package/layers/theme/app/composables/useAccentColor.ts +2 -1
  420. package/layers/theme/app/composables/useThemeContrast.ts +1 -1
  421. package/layers/theme/app/composables/useThemeMotion.ts +1 -1
  422. package/layers/theme/app/composables/useThemeTransparency.ts +1 -4
  423. package/layers/theme/app/plugins/theme.client.ts +33 -15
  424. package/layers/theme/app/types/app-config.d.ts +3 -2
  425. package/layers/theme/app/types/theme.ts +1 -1
  426. package/layers/theme/nuxt.config.ts +4 -1
  427. package/layers/transitions/app/components/Motion/Transition.vue +76 -0
  428. package/layers/transitions/nuxt.config.ts +19 -0
  429. package/layers/transitions/package.json +6 -0
  430. package/layers/transitions/tsconfig.json +7 -0
  431. package/layers/typography/app/components/Typography/CodeBlock.vue +44 -0
  432. package/layers/typography/app/components/Typography/Headline.vue +90 -0
  433. package/layers/typography/app/components/Typography/HeadlineScreen.vue +75 -0
  434. package/layers/typography/app/components/Typography/QuoteBlock.vue +21 -0
  435. package/layers/{ui → typography}/app/components/Typography/TextStroke.vue +33 -32
  436. package/layers/typography/app/components/Typography/index.vue +54 -0
  437. package/layers/{ui → typography}/app/composables/typography.ts +1 -0
  438. package/layers/{ui → typography}/app/types/typography.ts +1 -1
  439. package/layers/typography/nuxt.config.ts +17 -0
  440. package/layers/typography/package.json +6 -0
  441. package/layers/typography/tsconfig.json +7 -0
  442. package/layers/ui/app/assets/css/ui.css +0 -20
  443. package/layers/ui/nuxt.config.ts +5 -21
  444. package/layers/visual/app/app.config.ts +115 -0
  445. package/layers/visual/app/assets/css/visual.css +15 -0
  446. package/layers/visual/app/components/Accent/Blob.vue +32 -0
  447. package/layers/{ui → visual}/app/components/Accent/Scene.vue +26 -23
  448. package/layers/visual/app/components/Base/Modal.vue +123 -0
  449. package/layers/visual/app/components/Gradient/Background.vue +24 -0
  450. package/layers/visual/app/components/Gradient/Text.vue +24 -0
  451. package/layers/visual/app/components/Media/Picture.vue +51 -0
  452. package/layers/visual/app/components/Progress/Bar.vue +36 -0
  453. package/layers/{ui → visual}/app/components/Progress/Circular.vue +26 -25
  454. package/layers/visual/app/components/Tint/Overlay.vue +27 -0
  455. package/layers/{ui → visual}/app/composables/accent.ts +1 -0
  456. package/layers/{ui → visual}/app/composables/gradient.ts +3 -0
  457. package/layers/{ui → visual}/app/composables/picture.ts +2 -0
  458. package/layers/{ui → visual}/app/composables/tint.ts +3 -2
  459. package/layers/{ui → visual}/app/types/accent.ts +2 -2
  460. package/layers/{ui → visual}/app/types/gradient.ts +2 -2
  461. package/layers/{ui → visual}/app/types/media.ts +4 -3
  462. package/layers/{ui → visual}/app/types/tint.ts +1 -1
  463. package/layers/visual/nuxt.config.ts +19 -0
  464. package/layers/visual/package.json +6 -0
  465. package/layers/visual/tsconfig.json +7 -0
  466. package/package.json +29 -4
  467. package/layers/motion/app/app.config.ts +0 -27
  468. package/layers/motion/app/components/Motion/HorizontalScroll.vue +0 -61
  469. package/layers/motion/app/components/Motion/Parallax.vue +0 -75
  470. package/layers/motion/app/components/Motion/PinnedSection.vue +0 -77
  471. package/layers/motion/app/components/Motion/ScrollLink.vue +0 -49
  472. package/layers/motion/app/components/Motion/ScrollProgress.vue +0 -82
  473. package/layers/motion/app/components/Motion/ScrollScene.vue +0 -121
  474. package/layers/motion/app/components/Motion/ScrollStep.vue +0 -45
  475. package/layers/motion/app/components/Motion/Transition.vue +0 -76
  476. package/layers/shader/app/components/Shader/Canvas.vue +0 -121
  477. package/layers/ui/app/app.config.ts +0 -57
  478. package/layers/ui/app/components/Accent/Blob.vue +0 -29
  479. package/layers/ui/app/components/Base/Modal.vue +0 -111
  480. package/layers/ui/app/components/Gradient/Background.vue +0 -22
  481. package/layers/ui/app/components/Gradient/Text.vue +0 -22
  482. package/layers/ui/app/components/Links/Group.vue +0 -47
  483. package/layers/ui/app/components/Links/Named.vue +0 -31
  484. package/layers/ui/app/components/Mast/Footer.vue +0 -15
  485. package/layers/ui/app/components/Mast/NavModal.vue +0 -72
  486. package/layers/ui/app/components/Media/Picture.vue +0 -50
  487. package/layers/ui/app/components/Progress/Bar.vue +0 -35
  488. package/layers/ui/app/components/Tint/Overlay.vue +0 -25
  489. package/layers/ui/app/components/Typography/CodeBlock.vue +0 -42
  490. package/layers/ui/app/components/Typography/Headline.vue +0 -88
  491. package/layers/ui/app/components/Typography/HeadlineScreen.vue +0 -77
  492. package/layers/ui/app/components/Typography/QuoteBlock.vue +0 -20
  493. package/layers/ui/app/components/Typography/index.vue +0 -52
  494. package/layers/ui/app/types/app-config.d.ts +0 -22
  495. package/layers/ui/app/types/nav.ts +0 -5
  496. /package/layers/{motion → animations}/app/components/Motion/CountUp.vue +0 -0
  497. /package/layers/{motion → animations}/app/components/Motion/Cursor.vue +0 -0
  498. /package/layers/{motion → animations}/app/components/Motion/Magnetic.vue +0 -0
  499. /package/layers/{motion → animations}/app/components/Motion/Marquee.vue +0 -0
  500. /package/layers/{motion → animations}/app/components/Motion/MarqueeText.vue +0 -0
  501. /package/layers/{motion → animations}/app/components/Motion/Staggered.vue +0 -0
  502. /package/layers/{motion → animations}/app/components/Motion/TextReveal.vue +0 -0
  503. /package/layers/{motion → animations}/app/components/Motion/Tilt.vue +0 -0
  504. /package/layers/{motion → animations}/app/components/Motion/VelocityEffect.vue +0 -0
  505. /package/layers/{motion → animations}/app/composables/useCountUp.ts +0 -0
  506. /package/layers/{motion → animations}/app/composables/useCursorFollower.ts +0 -0
  507. /package/layers/{motion → animations}/app/composables/useMagneticElement.ts +0 -0
  508. /package/layers/{motion → animations}/app/composables/useMarqueeCopies.ts +0 -0
  509. /package/layers/{motion → animations}/app/composables/useMarqueeVelocity.ts +0 -0
  510. /package/layers/{motion → animations}/app/composables/useTiltEffect.ts +0 -0
  511. /package/layers/{ui → navigation}/app/components/Mast/Main.vue +0 -0
  512. /package/layers/{ui → navigation}/app/components/Site/Subtitle.vue +0 -0
  513. /package/layers/{ui → navigation}/app/components/Site/Title.vue +0 -0
  514. /package/layers/{ui → navigation}/app/utils/regex.ts +0 -0
  515. /package/layers/{motion/app/assets/css/motion.css → transitions/app/assets/css/transitions.css} +0 -0
  516. /package/layers/{ui → typography}/app/composables/color.ts +0 -0
  517. /package/layers/{ui → typography}/app/types/colors.ts +0 -0
  518. /package/layers/{ui → visual}/app/types/breakpoints.ts +0 -0
@@ -1,54 +1,95 @@
1
+ <!-- eslint-disable vue/define-props-destructuring -->
2
+ <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
1
3
  <script setup lang="ts">
2
- // @ts-nocheck
3
- import { Color, Vector3 } from 'three'
4
- import { uniform, time, vec4, mix, float } from 'three/tsl'
5
- import { fbm2D } from '../../shaders/common/noise'
4
+ // @ts-nocheck
5
+ import { Color, Vector3 } from 'three'
6
+ import { float, mix, time, uniform, vec4 } from 'three/tsl'
6
7
 
7
- /** Linear gradient with per-pixel FBM noise offset — living, organic gradient. */
8
- const props = withDefaults(defineProps<{
9
- colorA?: string
10
- colorB?: string
11
- /** Gradient axis angle in degrees */
12
- angle?: number
13
- /** Noise displacement strength */
14
- noiseStrength?: number
15
- /** Noise input scale */
16
- noiseScale?: number
17
- /** Animation speed */
18
- speed?: number
19
- order?: number
20
- }>(), { colorA: '#1a0a5a', colorB: '#ff8866', angle: 0, noiseStrength: 0.3, noiseScale: 2, speed: 0.15, order: 0 })
8
+ import { fbm2D } from '../../shaders/common/noise'
21
9
 
22
- function toVec3Node(hex: string) {
23
- const c = new Color(hex)
24
- return uniform(new Vector3(c.r, c.g, c.b))
25
- }
10
+ /** Linear gradient with per-pixel FBM noise offset — living, organic gradient. */
11
+ const props = withDefaults(
12
+ defineProps<{
13
+ colorA?: string
14
+ colorB?: string
15
+ /** Gradient axis angle in degrees */
16
+ angle?: number
17
+ /** Noise displacement strength */
18
+ noiseStrength?: number
19
+ /** Noise input scale */
20
+ noiseScale?: number
21
+ /** Animation speed */
22
+ speed?: number
23
+ order?: number
24
+ }>(),
25
+ {
26
+ colorA: '#1a0a5a',
27
+ colorB: '#ff8866',
28
+ angle: 0,
29
+ noiseStrength: 0.3,
30
+ noiseScale: 2,
31
+ speed: 0.15,
32
+ order: 0,
33
+ }
34
+ )
26
35
 
27
- const colorANode = toVec3Node(props.colorA)
28
- const colorBNode = toVec3Node(props.colorB)
29
- const angleNode = uniform(props.angle * Math.PI / 180)
30
- const noiseStrNode = uniform(props.noiseStrength)
31
- const noiseScaleNode = uniform(props.noiseScale)
32
- const speedNode = uniform(props.speed)
33
- watch(() => props.colorA, v => { const c = new Color(v); colorANode.value.set(c.r, c.g, c.b) })
34
- watch(() => props.colorB, v => { const c = new Color(v); colorBNode.value.set(c.r, c.g, c.b) })
35
- watch(() => props.angle, v => { angleNode.value = v * Math.PI / 180 })
36
- watch(() => props.noiseStrength, v => { noiseStrNode.value = v })
37
- watch(() => props.noiseScale, v => { noiseScaleNode.value = v })
38
- watch(() => props.speed, v => { speedNode.value = v })
36
+ function toVec3Node(hex: string) {
37
+ const c = new Color(hex)
38
+ return uniform(new Vector3(c.r, c.g, c.b))
39
+ }
39
40
 
40
- const pipeline = useShaderPipelineContext()
41
+ const colorANode = toVec3Node(props.colorA)
42
+ const colorBNode = toVec3Node(props.colorB)
43
+ const angleNode = uniform((props.angle * Math.PI) / 180)
44
+ const noiseStrNode = uniform(props.noiseStrength)
45
+ const noiseScaleNode = uniform(props.noiseScale)
46
+ const speedNode = uniform(props.speed)
47
+ watch(
48
+ () => props.colorA,
49
+ (v) => {
50
+ const c = new Color(v)
51
+ colorANode.value.set(c.r, c.g, c.b)
52
+ }
53
+ )
54
+ watch(
55
+ () => props.colorB,
56
+ (v) => {
57
+ const c = new Color(v)
58
+ colorBNode.value.set(c.r, c.g, c.b)
59
+ }
60
+ )
61
+ watch(
62
+ () => props.angle,
63
+ (v) => {
64
+ angleNode.value = (v * Math.PI) / 180
65
+ }
66
+ )
67
+ watch(
68
+ () => props.noiseStrength,
69
+ (v) => {
70
+ noiseStrNode.value = v
71
+ }
72
+ )
73
+ watch(
74
+ () => props.noiseScale,
75
+ (v) => {
76
+ noiseScaleNode.value = v
77
+ }
78
+ )
79
+ watch(
80
+ () => props.speed,
81
+ (v) => {
82
+ speedNode.value = v
83
+ }
84
+ )
41
85
 
42
- useShaderStage(
43
- () => {
86
+ const pipeline = useShaderPipelineContext()
87
+
88
+ useShaderStage(() => {
44
89
  const uv = pipeline.uvNode.value
45
90
  const n = fbm2D(uv.mul(noiseScaleNode).add(time.mul(speedNode)))
46
91
  const base = uv.x.mul(angleNode.cos()).add(uv.y.mul(angleNode.sin()))
47
92
  const t = base.add(n.mul(noiseStrNode)).clamp(float(0), float(1))
48
93
  return vec4(mix(colorANode, colorBNode, t), float(1))
49
- },
50
- props.order,
51
- )
94
+ }, props.order)
52
95
  </script>
53
-
54
- <template><!-- --></template>
@@ -1,84 +1,141 @@
1
+ <!-- eslint-disable vue/define-props-destructuring -->
2
+ <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
1
3
  <script setup lang="ts">
2
- // @ts-nocheck
3
- import { Color, Vector3 } from 'three'
4
- import { uniform, time, vec2, vec4, mix, smoothstep, cos, sin, float } from 'three/tsl'
5
- import { simplexNoise2D } from '../../shaders/common/noise'
4
+ // @ts-nocheck
5
+ import { Color, Vector3 } from 'three'
6
+ import { cos, float, mix, sin, smoothstep, time, uniform, vec2, vec4 } from 'three/tsl'
6
7
 
7
- /**
8
- * Self-contained Grainient/Shadertoy gradient pattern.
9
- * Combines: GradientNoise → noise-driven UV rotation → asymmetric sine warp
10
- * → rotated two-colour blend.
11
- * Equivalent to: UVNoiseRotate + UVSineWarpXY + RotatedGradientBlend in one component.
12
- * Exposes all params individually so the pipeline can still intercept at any stage,
13
- * but provides a convenient self-contained starting point.
14
- */
15
- const props = withDefaults(defineProps<{
16
- colorA?: string
17
- colorB?: string
18
- /** Noise input scale */
19
- noiseScale?: number
20
- /** Max rotation amount driven by noise (degrees) */
21
- rotationAmount?: number
22
- /** Sine warp frequency */
23
- warpFrequency?: number
24
- /** Sine warp amplitude (higher = subtler) */
25
- warpAmplitude?: number
26
- /** Gradient blend angle (degrees) */
27
- blendAngle?: number
28
- /** Smoothstep lower edge */
29
- edge0?: number
30
- /** Smoothstep upper edge */
31
- edge1?: number
32
- /** Animation speed */
33
- speed?: number
34
- order?: number
35
- }>(), {
36
- colorA: '#1a0a5a',
37
- colorB: '#ff6688',
38
- noiseScale: 1,
39
- rotationAmount: 720,
40
- warpFrequency: 3,
41
- warpAmplitude: 3,
42
- blendAngle: 45,
43
- edge0: 0.2,
44
- edge1: 0.8,
45
- speed: 0.3,
46
- order: 0,
47
- })
8
+ import { simplexNoise2D } from '../../shaders/common/noise'
48
9
 
49
- const DEG2RAD = Math.PI / 180
10
+ /**
11
+ * Self-contained Grainient/Shadertoy gradient pattern.
12
+ * Combines: GradientNoise → noise-driven UV rotation → asymmetric sine warp
13
+ * → rotated two-colour blend.
14
+ * Equivalent to: UVNoiseRotate + UVSineWarpXY + RotatedGradientBlend in one component.
15
+ * Exposes all params individually so the pipeline can still intercept at any stage,
16
+ * but provides a convenient self-contained starting point.
17
+ */
18
+ const props = withDefaults(
19
+ defineProps<{
20
+ colorA?: string
21
+ colorB?: string
22
+ /** Noise input scale */
23
+ noiseScale?: number
24
+ /** Max rotation amount driven by noise (degrees) */
25
+ rotationAmount?: number
26
+ /** Sine warp frequency */
27
+ warpFrequency?: number
28
+ /** Sine warp amplitude (higher = subtler) */
29
+ warpAmplitude?: number
30
+ /** Gradient blend angle (degrees) */
31
+ blendAngle?: number
32
+ /** Smoothstep lower edge */
33
+ edge0?: number
34
+ /** Smoothstep upper edge */
35
+ edge1?: number
36
+ /** Animation speed */
37
+ speed?: number
38
+ order?: number
39
+ }>(),
40
+ {
41
+ colorA: '#1a0a5a',
42
+ colorB: '#ff6688',
43
+ noiseScale: 1,
44
+ rotationAmount: 720,
45
+ warpFrequency: 3,
46
+ warpAmplitude: 3,
47
+ blendAngle: 45,
48
+ edge0: 0.2,
49
+ edge1: 0.8,
50
+ speed: 0.3,
51
+ order: 0,
52
+ }
53
+ )
50
54
 
51
- function toVec3Node(hex: string) {
52
- const c = new Color(hex)
53
- return uniform(new Vector3(c.r, c.g, c.b))
54
- }
55
+ const DEG2RAD = Math.PI / 180
55
56
 
56
- const colorANode = toVec3Node(props.colorA)
57
- const colorBNode = toVec3Node(props.colorB)
58
- const noiseScaleNode = uniform(props.noiseScale)
59
- const rotAmountNode = uniform(props.rotationAmount * DEG2RAD)
60
- const warpFreqNode = uniform(props.warpFrequency)
61
- const warpAmpNode = uniform(props.warpAmplitude)
62
- const blendAngleNode = uniform(props.blendAngle * DEG2RAD)
63
- const edge0Node = uniform(props.edge0)
64
- const edge1Node = uniform(props.edge1)
65
- const speedNode = uniform(props.speed)
57
+ function toVec3Node(hex: string) {
58
+ const c = new Color(hex)
59
+ return uniform(new Vector3(c.r, c.g, c.b))
60
+ }
66
61
 
67
- watch(() => props.colorA, v => { const c = new Color(v); colorANode.value.set(c.r, c.g, c.b) })
68
- watch(() => props.colorB, v => { const c = new Color(v); colorBNode.value.set(c.r, c.g, c.b) })
69
- watch(() => props.noiseScale, v => { noiseScaleNode.value = v })
70
- watch(() => props.rotationAmount, v => { rotAmountNode.value = v * DEG2RAD })
71
- watch(() => props.warpFrequency, v => { warpFreqNode.value = v })
72
- watch(() => props.warpAmplitude, v => { warpAmpNode.value = v })
73
- watch(() => props.blendAngle, v => { blendAngleNode.value = v * DEG2RAD })
74
- watch(() => props.edge0, v => { edge0Node.value = v })
75
- watch(() => props.edge1, v => { edge1Node.value = v })
76
- watch(() => props.speed, v => { speedNode.value = v })
62
+ const colorANode = toVec3Node(props.colorA)
63
+ const colorBNode = toVec3Node(props.colorB)
64
+ const noiseScaleNode = uniform(props.noiseScale)
65
+ const rotAmountNode = uniform(props.rotationAmount * DEG2RAD)
66
+ const warpFreqNode = uniform(props.warpFrequency)
67
+ const warpAmpNode = uniform(props.warpAmplitude)
68
+ const blendAngleNode = uniform(props.blendAngle * DEG2RAD)
69
+ const edge0Node = uniform(props.edge0)
70
+ const edge1Node = uniform(props.edge1)
71
+ const speedNode = uniform(props.speed)
77
72
 
78
- const pipeline = useShaderPipelineContext()
73
+ watch(
74
+ () => props.colorA,
75
+ (v) => {
76
+ const c = new Color(v)
77
+ colorANode.value.set(c.r, c.g, c.b)
78
+ }
79
+ )
80
+ watch(
81
+ () => props.colorB,
82
+ (v) => {
83
+ const c = new Color(v)
84
+ colorBNode.value.set(c.r, c.g, c.b)
85
+ }
86
+ )
87
+ watch(
88
+ () => props.noiseScale,
89
+ (v) => {
90
+ noiseScaleNode.value = v
91
+ }
92
+ )
93
+ watch(
94
+ () => props.rotationAmount,
95
+ (v) => {
96
+ rotAmountNode.value = v * DEG2RAD
97
+ }
98
+ )
99
+ watch(
100
+ () => props.warpFrequency,
101
+ (v) => {
102
+ warpFreqNode.value = v
103
+ }
104
+ )
105
+ watch(
106
+ () => props.warpAmplitude,
107
+ (v) => {
108
+ warpAmpNode.value = v
109
+ }
110
+ )
111
+ watch(
112
+ () => props.blendAngle,
113
+ (v) => {
114
+ blendAngleNode.value = v * DEG2RAD
115
+ }
116
+ )
117
+ watch(
118
+ () => props.edge0,
119
+ (v) => {
120
+ edge0Node.value = v
121
+ }
122
+ )
123
+ watch(
124
+ () => props.edge1,
125
+ (v) => {
126
+ edge1Node.value = v
127
+ }
128
+ )
129
+ watch(
130
+ () => props.speed,
131
+ (v) => {
132
+ speedNode.value = v
133
+ }
134
+ )
79
135
 
80
- useShaderStage(
81
- () => {
136
+ const pipeline = useShaderPipelineContext()
137
+
138
+ useShaderStage(() => {
82
139
  const uvCurrent = pipeline.uvNode.value
83
140
  if (!uvCurrent) return vec4(0, 0, 0, 1)
84
141
 
@@ -86,19 +143,26 @@ useShaderStage(
86
143
 
87
144
  // 1. Noise-driven UV rotation
88
145
  const n = simplexNoise2D(uvCurrent.mul(noiseScaleNode).add(t))
89
- const angle = n.mul(0.5).add(0.5).mul(rotAmountNode).add(float(Math.PI)).sub(rotAmountNode.mul(0.5))
146
+ const angle = n
147
+ .mul(0.5)
148
+ .add(0.5)
149
+ .mul(rotAmountNode)
150
+ .add(float(Math.PI))
151
+ .sub(rotAmountNode.mul(0.5))
90
152
  const c1 = cos(angle)
91
153
  const s1 = sin(angle)
92
154
  const centered = uvCurrent.sub(0.5)
93
155
  const rotated = vec2(
94
156
  centered.x.mul(c1).sub(centered.y.mul(s1)),
95
- centered.x.mul(s1).add(centered.y.mul(c1)),
157
+ centered.x.mul(s1).add(centered.y.mul(c1))
96
158
  ).add(0.5)
97
159
 
98
160
  // 2. Asymmetric sine warp — pure functional (no toVar/addAssign needed)
99
161
  // warpedY uses warpedX to replicate the sequential addAssign behaviour
100
162
  const warpedX = rotated.x.add(sin(rotated.y.mul(warpFreqNode).add(t)).div(warpAmpNode))
101
- const warpedY = rotated.y.add(sin(warpedX.mul(warpFreqNode.mul(1.5)).add(t)).div(warpAmpNode.mul(0.5)))
163
+ const warpedY = rotated.y.add(
164
+ sin(warpedX.mul(warpFreqNode.mul(1.5)).add(t)).div(warpAmpNode.mul(0.5))
165
+ )
102
166
  const tuv = vec2(warpedX, warpedY)
103
167
 
104
168
  // 3. Rotated gradient blend
@@ -108,9 +172,5 @@ useShaderStage(
108
172
  const blend = smoothstep(edge0Node, edge1Node, rotX)
109
173
 
110
174
  return vec4(mix(colorANode, colorBNode, blend), float(1))
111
- },
112
- props.order,
113
- )
175
+ }, props.order)
114
176
  </script>
115
-
116
- <template><!-- --></template>
@@ -1,24 +1,38 @@
1
+ <!-- eslint-disable vue/define-props-destructuring -->
2
+ <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
1
3
  <script setup lang="ts">
2
- // @ts-nocheck
3
- import { Color } from 'three'
4
- import { mix, uniform, vec4 } from 'three/tsl'
5
- import { blendOverlay } from '../../shaders/common/blend'
4
+ // @ts-nocheck
5
+ import { Color } from 'three'
6
+ import { mix, uniform, vec4 } from 'three/tsl'
6
7
 
7
- const props = withDefaults(defineProps<{
8
- color?: string
9
- opacity?: number
10
- order?: number
11
- }>(), { color: '#808080', opacity: 1, order: 0 })
8
+ import { blendOverlay } from '../../shaders/common/blend'
12
9
 
13
- const colorNode = uniform(new Color(props.color))
14
- const opacityNode = uniform(props.opacity)
15
- watch(() => props.color, v => { colorNode.value.set(v) })
16
- watch(() => props.opacity, v => { opacityNode.value = v })
10
+ const props = withDefaults(
11
+ defineProps<{
12
+ color?: string
13
+ opacity?: number
14
+ order?: number
15
+ }>(),
16
+ { color: '#808080', opacity: 1, order: 0 }
17
+ )
17
18
 
18
- useShaderStage(
19
- (prev) => vec4(mix(prev.xyz, blendOverlay(prev.xyz, colorNode), opacityNode), prev.w),
20
- props.order,
21
- )
22
- </script>
19
+ const colorNode = uniform(new Color(props.color))
20
+ const opacityNode = uniform(props.opacity)
21
+ watch(
22
+ () => props.color,
23
+ (v) => {
24
+ colorNode.value.set(v)
25
+ }
26
+ )
27
+ watch(
28
+ () => props.opacity,
29
+ (v) => {
30
+ opacityNode.value = v
31
+ }
32
+ )
23
33
 
24
- <template><!-- --></template>
34
+ useShaderStage(
35
+ (prev) => vec4(mix(prev.xyz, blendOverlay(prev.xyz, colorNode), opacityNode), prev.w),
36
+ props.order
37
+ )
38
+ </script>
@@ -1,41 +1,58 @@
1
+ <!-- eslint-disable @typescript-eslint/no-unused-vars -->
2
+ <!-- eslint-disable vue/define-props-destructuring -->
3
+ <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
1
4
  <script setup lang="ts">
2
- // @ts-nocheck
3
- import { uniform, time, vec4, floor, float } from 'three/tsl'
4
- import { paperTexture } from '../../shaders/common/grain'
5
+ // @ts-nocheck
6
+ import { float, floor, time, uniform, vec4 } from 'three/tsl'
5
7
 
6
- /**
7
- * Paper texture overlay — multi-octave grain that reads like coarse paper or canvas.
8
- * Adds tactile analogue feel to any underlying image.
9
- */
10
- const props = withDefaults(defineProps<{
11
- /** Texture scale — higher = finer grain pattern */
12
- scale?: number
13
- /** Overlay intensity */
14
- intensity?: number
15
- /** Animate slowly for a living-paper effect (0 = static) */
16
- speed?: number
17
- order?: number
18
- }>(), { scale: 12, intensity: 0.08, speed: 0, order: 0 })
8
+ import { paperTexture } from '../../shaders/common/grain'
19
9
 
20
- const scaleNode = uniform(props.scale)
21
- const intensityNode = uniform(props.intensity)
22
- const speedNode = uniform(props.speed)
23
- watch(() => props.scale, v => { scaleNode.value = v })
24
- watch(() => props.intensity, v => { intensityNode.value = v })
25
- watch(() => props.speed, v => { speedNode.value = v })
10
+ /**
11
+ * Paper texture overlay — multi-octave grain that reads like coarse paper or canvas.
12
+ * Adds tactile analogue feel to any underlying image.
13
+ */
14
+ const props = withDefaults(
15
+ defineProps<{
16
+ /** Texture scale — higher = finer grain pattern */
17
+ scale?: number
18
+ /** Overlay intensity */
19
+ intensity?: number
20
+ /** Animate slowly for a living-paper effect (0 = static) */
21
+ speed?: number
22
+ order?: number
23
+ }>(),
24
+ { scale: 12, intensity: 0.08, speed: 0, order: 0 }
25
+ )
26
26
 
27
- const pipeline = useShaderPipelineContext()
27
+ const scaleNode = uniform(props.scale)
28
+ const intensityNode = uniform(props.intensity)
29
+ const speedNode = uniform(props.speed)
30
+ watch(
31
+ () => props.scale,
32
+ (v) => {
33
+ scaleNode.value = v
34
+ }
35
+ )
36
+ watch(
37
+ () => props.intensity,
38
+ (v) => {
39
+ intensityNode.value = v
40
+ }
41
+ )
42
+ watch(
43
+ () => props.speed,
44
+ (v) => {
45
+ speedNode.value = v
46
+ }
47
+ )
28
48
 
29
- useShaderStage(
30
- (prev) => {
49
+ const pipeline = useShaderPipelineContext()
50
+
51
+ useShaderStage((prev) => {
31
52
  const uv = pipeline.uvNode.value
32
53
  const seed = floor(time.mul(speedNode).mul(6))
33
54
 
34
55
  const tex = paperTexture(uv, scaleNode, intensityNode, seed)
35
56
  return vec4(prev.xyz.add(tex), prev.w)
36
- },
37
- props.order,
38
- )
57
+ }, props.order)
39
58
  </script>
40
-
41
- <template><!-- --></template>
@@ -1,47 +1,84 @@
1
+ <!-- eslint-disable @typescript-eslint/no-unused-vars -->
2
+ <!-- eslint-disable vue/define-props-destructuring -->
3
+ <!-- eslint-disable @typescript-eslint/ban-ts-comment -->
1
4
  <script setup lang="ts">
2
- // @ts-nocheck
3
- import { Color, Vector3 } from 'three'
4
- import { uniform, vec4, mix, smoothstep, float } from 'three/tsl'
5
- import { polygon } from '../../shaders/common/shapes'
5
+ // @ts-nocheck
6
+ import { Color, Vector3 } from 'three'
7
+ import { float, mix, smoothstep, uniform, vec4 } from 'three/tsl'
6
8
 
7
- const props = withDefaults(defineProps<{
8
- colorA?: string
9
- colorB?: string
10
- /** Number of sides */
11
- sides?: number
12
- radius?: number
13
- softness?: number
14
- /** Rotation offset in degrees */
15
- rotation?: number
16
- order?: number
17
- }>(), { colorA: '#000000', colorB: '#ffffff', sides: 6, radius: 0.35, softness: 0.01, rotation: 0, order: 0 })
9
+ import { polygon } from '../../shaders/common/shapes'
18
10
 
19
- function toVec3Node(hex: string) {
20
- const c = new Color(hex)
21
- return uniform(new Vector3(c.r, c.g, c.b))
22
- }
11
+ const props = withDefaults(
12
+ defineProps<{
13
+ colorA?: string
14
+ colorB?: string
15
+ /** Number of sides */
16
+ sides?: number
17
+ radius?: number
18
+ softness?: number
19
+ /** Rotation offset in degrees */
20
+ rotation?: number
21
+ order?: number
22
+ }>(),
23
+ {
24
+ colorA: '#000000',
25
+ colorB: '#ffffff',
26
+ sides: 6,
27
+ radius: 0.35,
28
+ softness: 0.01,
29
+ rotation: 0,
30
+ order: 0,
31
+ }
32
+ )
23
33
 
24
- const colorANode = toVec3Node(props.colorA)
25
- const colorBNode = toVec3Node(props.colorB)
26
- const radiusNode = uniform(props.radius)
27
- const softnessNode = uniform(props.softness)
28
- const rotationNode = uniform(props.rotation * Math.PI / 180)
29
- watch(() => props.colorA, v => { const c = new Color(v); colorANode.value.set(c.r, c.g, c.b) })
30
- watch(() => props.colorB, v => { const c = new Color(v); colorBNode.value.set(c.r, c.g, c.b) })
31
- watch(() => props.radius, v => { radiusNode.value = v })
32
- watch(() => props.softness, v => { softnessNode.value = v })
33
- watch(() => props.rotation, v => { rotationNode.value = v * Math.PI / 180 })
34
+ function toVec3Node(hex: string) {
35
+ const c = new Color(hex)
36
+ return uniform(new Vector3(c.r, c.g, c.b))
37
+ }
34
38
 
35
- const pipeline = useShaderPipelineContext()
39
+ const colorANode = toVec3Node(props.colorA)
40
+ const colorBNode = toVec3Node(props.colorB)
41
+ const radiusNode = uniform(props.radius)
42
+ const softnessNode = uniform(props.softness)
43
+ const rotationNode = uniform((props.rotation * Math.PI) / 180)
44
+ watch(
45
+ () => props.colorA,
46
+ (v) => {
47
+ const c = new Color(v)
48
+ colorANode.value.set(c.r, c.g, c.b)
49
+ }
50
+ )
51
+ watch(
52
+ () => props.colorB,
53
+ (v) => {
54
+ const c = new Color(v)
55
+ colorBNode.value.set(c.r, c.g, c.b)
56
+ }
57
+ )
58
+ watch(
59
+ () => props.radius,
60
+ (v) => {
61
+ radiusNode.value = v
62
+ }
63
+ )
64
+ watch(
65
+ () => props.softness,
66
+ (v) => {
67
+ softnessNode.value = v
68
+ }
69
+ )
70
+ watch(
71
+ () => props.rotation,
72
+ (v) => {
73
+ rotationNode.value = (v * Math.PI) / 180
74
+ }
75
+ )
36
76
 
37
- useShaderStage(
38
- () => {
77
+ const pipeline = useShaderPipelineContext()
78
+
79
+ useShaderStage(() => {
39
80
  const uv = pipeline.uvNode.value
40
81
  const mask = polygon(uv, [0.5, 0.5], radiusNode, props.sides, softnessNode)
41
82
  return vec4(mix(colorANode, colorBNode, mask), float(1))
42
- },
43
- props.order,
44
- )
83
+ }, props.order)
45
84
  </script>
46
-
47
- <template><!-- --></template>