shaders 3.0.450 → 3.0.451
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -2
- package/dist/core/LensDistortion-DG4VHEXV.js +435 -0
- package/dist/core/{ObjectTracker-BWo8H1kh.js → ObjectTracker-DvQF31-0.js} +1 -1
- package/dist/core/{Text-o_dubJeo.js → Text-Dka9dwCa.js} +1 -1
- package/dist/core/gpu/index.d.ts.map +1 -1
- package/dist/core/index.js +105 -94
- package/dist/core/presetRenderer.d.ts.map +1 -1
- package/dist/core/registry.js +95 -94
- package/dist/core/{shaderRegistry-BSrnuqx-.js → shaderRegistry-CkDrffEe.js} +190 -188
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/LensDistortion/index.d.ts +123 -0
- package/dist/core/shaders/LensDistortion/index.d.ts.map +1 -0
- package/dist/core/shaders/LensDistortion/index.js +8 -0
- package/dist/core/shaders/LensFlare/index.js +1 -1
- package/dist/core/shaders/LightEdge/index.js +1 -1
- package/dist/core/shaders/LightLeak/index.js +1 -1
- package/dist/core/shaders/LinearBlur/index.js +1 -1
- package/dist/core/shaders/LinearGradient/index.js +1 -1
- package/dist/core/shaders/LinearWipe/index.js +1 -1
- package/dist/core/shaders/LiquidMetal/index.js +1 -1
- package/dist/core/shaders/Liquify/index.js +1 -1
- package/dist/core/shaders/MagneticFilings/index.js +1 -1
- package/dist/core/shaders/Marble/index.js +1 -1
- package/dist/core/shaders/Mirror/index.js +1 -1
- package/dist/core/shaders/MultiPointGradient/index.js +1 -1
- package/dist/core/shaders/NoiseDissolve/index.js +1 -1
- package/dist/core/shaders/ObjectTracker/index.js +2 -2
- package/dist/core/shaders/PagePeel/index.js +1 -1
- package/dist/core/shaders/Paper/index.js +1 -1
- package/dist/core/shaders/Parallelogram/index.js +1 -1
- package/dist/core/shaders/ParticleField/index.js +1 -1
- package/dist/core/shaders/ParticleFlow/index.js +1 -1
- package/dist/core/shaders/Particles/index.js +1 -1
- package/dist/core/shaders/PerlinNoise/index.js +1 -1
- package/dist/core/shaders/Perspective/index.js +1 -1
- package/dist/core/shaders/PixelSort/index.js +1 -1
- package/dist/core/shaders/PixelThrow/index.js +1 -1
- package/dist/core/shaders/Pixelate/index.js +1 -1
- package/dist/core/shaders/Plasma/index.js +1 -1
- package/dist/core/shaders/Plastic/index.js +1 -1
- package/dist/core/shaders/PolarCoordinates/index.js +1 -1
- package/dist/core/shaders/Polygon/index.js +1 -1
- package/dist/core/shaders/Posterize/index.js +1 -1
- package/dist/core/shaders/Prism/index.js +1 -1
- package/dist/core/shaders/ProgressiveBlur/index.js +1 -1
- package/dist/core/shaders/RadialGradient/index.js +1 -1
- package/dist/core/shaders/RadialWipe/index.js +1 -1
- package/dist/core/shaders/RandomBars/index.js +1 -1
- package/dist/core/shaders/ReactionDiffusion/index.js +1 -1
- package/dist/core/shaders/RectangularCoordinates/index.js +1 -1
- package/dist/core/shaders/ReflectivePlane/index.js +1 -1
- package/dist/core/shaders/Repeater/index.js +1 -1
- package/dist/core/shaders/Ring/index.js +1 -1
- package/dist/core/shaders/RippleWipe/index.js +1 -1
- package/dist/core/shaders/Ripples/index.js +1 -1
- package/dist/core/shaders/RoundedRect/index.js +1 -1
- package/dist/core/shaders/Saturation/index.js +1 -1
- package/dist/core/shaders/Scratches/index.js +1 -1
- package/dist/core/shaders/Sharpness/index.js +1 -1
- package/dist/core/shaders/Shatter/index.js +1 -1
- package/dist/core/shaders/SimplexNoise/index.js +1 -1
- package/dist/core/shaders/SineWave/index.js +1 -1
- package/dist/core/shaders/SliceWipe/index.js +1 -1
- package/dist/core/shaders/Smoke/index.js +1 -1
- package/dist/core/shaders/SmokeFill/index.js +1 -1
- package/dist/core/shaders/SmokeFlow/index.js +1 -1
- package/dist/core/shaders/Solarize/index.js +1 -1
- package/dist/core/shaders/SolidColor/index.js +1 -1
- package/dist/core/shaders/Spherize/index.js +1 -1
- package/dist/core/shaders/Spiral/index.js +1 -1
- package/dist/core/shaders/Star/index.js +1 -1
- package/dist/core/shaders/Stone/index.js +1 -1
- package/dist/core/shaders/Strands/index.js +1 -1
- package/dist/core/shaders/Stretch/index.js +1 -1
- package/dist/core/shaders/Stripes/index.js +1 -1
- package/dist/core/shaders/StudioBackground/index.js +1 -1
- package/dist/core/shaders/SunBurst/index.js +1 -1
- package/dist/core/shaders/Surface3D/index.js +1 -1
- package/dist/core/shaders/Swirl/index.js +1 -1
- package/dist/core/shaders/Teardrop/index.js +1 -1
- package/dist/core/shaders/Text/index.js +2 -2
- package/dist/core/shaders/TiltShift/index.js +1 -1
- package/dist/core/shaders/TimeTrail/index.js +1 -1
- package/dist/core/shaders/Tint/index.js +1 -1
- package/dist/core/shaders/Trapezoid/index.js +1 -1
- package/dist/core/shaders/TriangularGrid/index.js +1 -1
- package/dist/core/shaders/Tritone/index.js +1 -1
- package/dist/core/shaders/Truchet/index.js +1 -1
- package/dist/core/shaders/Twirl/index.js +1 -1
- package/dist/core/shaders/VHS/index.js +1 -1
- package/dist/core/shaders/VenetianBlinds/index.js +1 -1
- package/dist/core/shaders/Vesica/index.js +1 -1
- package/dist/core/shaders/Vibrance/index.js +1 -1
- package/dist/core/shaders/VideoTexture/index.js +1 -1
- package/dist/core/shaders/Vignette/index.js +1 -1
- package/dist/core/shaders/Voronoi/index.js +1 -1
- package/dist/core/shaders/Water/index.js +1 -1
- package/dist/core/shaders/Watercolor/index.js +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +1 -1
- package/dist/core/shaders/WaveletNoise/index.js +1 -1
- package/dist/core/shaders/Weave/index.js +1 -1
- package/dist/core/shaders/WebcamTexture/index.js +1 -1
- package/dist/core/shaders/Wool/index.js +1 -1
- package/dist/core/shaders/WorleyNoise/index.js +1 -1
- package/dist/core/shaders/ZoomBlur/index.js +1 -1
- package/dist/js/bundle.js +90 -90
- package/dist/js/createShader.js +1 -1
- package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/js/utils/generatePresetCode.js +27 -0
- package/dist/react/LensDistortion.js +226 -0
- package/dist/react/Preview.js +1 -0
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +75 -75
- package/dist/react/components/LensDistortion.d.ts +54 -0
- package/dist/react/components/LensDistortion.d.ts.map +1 -0
- package/dist/react/engine/Preview.d.ts.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +27 -0
- package/dist/registry.js +585 -0
- package/dist/solid/components/LensDistortion.d.ts +51 -0
- package/dist/solid/components/LensDistortion.d.ts.map +1 -0
- package/dist/solid/components/LensDistortion.js +232 -0
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +193 -191
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +194 -192
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +27 -0
- package/dist/svelte/components/LensDistortion.svelte.d.ts +41 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +2751 -2544
- package/dist/svelte/source/components/LensDistortion.svelte +365 -0
- package/dist/svelte/source/engine/Preview.svelte +2 -0
- package/dist/svelte/source/index.js +1 -0
- package/dist/svelte/utils/generatePresetCode.js +27 -0
- package/dist/vue/LensDistortion.js +3 -0
- package/dist/vue/LensDistortion.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/components/LensDistortion.vue.d.ts +76 -0
- package/dist/vue/components/LensDistortion.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +2 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +27 -0
- package/package.json +9 -1
- /package/dist/core/{LensFlare-G73cvrIG.js → LensFlare-DO5lm--6.js} +0 -0
- /package/dist/core/{LightEdge-D3i7HUR9.js → LightEdge-CxWsQwpZ.js} +0 -0
- /package/dist/core/{LightLeak-B8yGreP-.js → LightLeak-tGJW6l2_.js} +0 -0
- /package/dist/core/{LinearBlur-BEzNPe0e.js → LinearBlur-OmZcUden.js} +0 -0
- /package/dist/core/{LinearGradient-XjXyaoii.js → LinearGradient-DDqFujWC.js} +0 -0
- /package/dist/core/{LinearWipe-Doj9aS5n.js → LinearWipe-BzthBFNb.js} +0 -0
- /package/dist/core/{LiquidMetal-CWV_RQip.js → LiquidMetal-DpRAJ5Ne.js} +0 -0
- /package/dist/core/{Liquify-DWrgFruC.js → Liquify-BVzmuY6D.js} +0 -0
- /package/dist/core/{MagneticFilings-Co0V07-1.js → MagneticFilings-BP1KyU2C.js} +0 -0
- /package/dist/core/{Marble-D13mDBvL.js → Marble-abj97ioG.js} +0 -0
- /package/dist/core/{Mirror-DvukM_eG.js → Mirror-BYqbXWUj.js} +0 -0
- /package/dist/core/{MultiPointGradient-CyK_Ty9a.js → MultiPointGradient-DZZSkiDv.js} +0 -0
- /package/dist/core/{NoiseDissolve-CeX3VO8J.js → NoiseDissolve-DSkh5NdD.js} +0 -0
- /package/dist/core/{PagePeel-BL5IeBeD.js → PagePeel-DWtgqWdt.js} +0 -0
- /package/dist/core/{Paper-BAq9MqtG.js → Paper-DGzZsv79.js} +0 -0
- /package/dist/core/{Parallelogram-DYzFG9ci.js → Parallelogram-Ce0Pg7DX.js} +0 -0
- /package/dist/core/{ParticleField-Bl4uztO7.js → ParticleField-CgCOigET.js} +0 -0
- /package/dist/core/{ParticleFlow-RPxLP8HC.js → ParticleFlow-CRQhvYQx.js} +0 -0
- /package/dist/core/{Particles-BDEX4Fw2.js → Particles-fKk9qTkl.js} +0 -0
- /package/dist/core/{PerlinNoise-BtXlaEd8.js → PerlinNoise-DIFK1BpN.js} +0 -0
- /package/dist/core/{Perspective-CdU5nAEn.js → Perspective-CDNz_7y5.js} +0 -0
- /package/dist/core/{PixelSort-C7TX1ClH.js → PixelSort-sgh5ghCc.js} +0 -0
- /package/dist/core/{PixelThrow-DpKEZPMK.js → PixelThrow-CXtB4Am2.js} +0 -0
- /package/dist/core/{Pixelate-C2OQUtqr.js → Pixelate-BSOzwVHo.js} +0 -0
- /package/dist/core/{Plasma-DLq9HroF.js → Plasma-G6Hl__3L.js} +0 -0
- /package/dist/core/{Plastic-C2hiOaXw.js → Plastic-B6F2WeaX.js} +0 -0
- /package/dist/core/{PolarCoordinates-Bumv-Hi3.js → PolarCoordinates-Bi99omfI.js} +0 -0
- /package/dist/core/{Polygon-DOpR58g4.js → Polygon-BFxoe-Fg.js} +0 -0
- /package/dist/core/{Posterize-CVNOkDme.js → Posterize-DxiCXLUL.js} +0 -0
- /package/dist/core/{Prism-CCQ1BsBL.js → Prism-D6J-acZf.js} +0 -0
- /package/dist/core/{ProgressiveBlur-Cprr1XSE.js → ProgressiveBlur-Bko6UMxQ.js} +0 -0
- /package/dist/core/{RadialGradient-CsmCSySC.js → RadialGradient-B_Dgxs9_.js} +0 -0
- /package/dist/core/{RadialWipe-BAnsqol4.js → RadialWipe-U9n5aeiJ.js} +0 -0
- /package/dist/core/{RandomBars-DdhtxO8o.js → RandomBars-U_zpGDJh.js} +0 -0
- /package/dist/core/{ReactionDiffusion-Bih4xEtV.js → ReactionDiffusion-I9xj-iK_.js} +0 -0
- /package/dist/core/{RectangularCoordinates-CKKA2oY1.js → RectangularCoordinates-DX6wutjX.js} +0 -0
- /package/dist/core/{ReflectivePlane-u3Tje37M.js → ReflectivePlane-DU9pf-7H.js} +0 -0
- /package/dist/core/{Repeater-C-agsqBS.js → Repeater-kCIaHHFy.js} +0 -0
- /package/dist/core/{Ring-Cj7bR89h.js → Ring-B_tYq3KV.js} +0 -0
- /package/dist/core/{RippleWipe-VL1MMd5o.js → RippleWipe-DCgZZ4VT.js} +0 -0
- /package/dist/core/{Ripples-B88TeopS.js → Ripples-BDhMh7XC.js} +0 -0
- /package/dist/core/{RoundedRect-jn8_QLrT.js → RoundedRect-9b3REf2d.js} +0 -0
- /package/dist/core/{Saturation-dCNIhHq2.js → Saturation-CcblT031.js} +0 -0
- /package/dist/core/{Scratches-Dz_1Ptk0.js → Scratches-Rzk27V6D.js} +0 -0
- /package/dist/core/{Sharpness-Bxq4YiRL.js → Sharpness-ClLOnNR8.js} +0 -0
- /package/dist/core/{Shatter-DsuYUr-1.js → Shatter-CLI896c7.js} +0 -0
- /package/dist/core/{SimplexNoise-CvalBPNF.js → SimplexNoise-98RPhPzU.js} +0 -0
- /package/dist/core/{SineWave-XPK5BsPB.js → SineWave-BZPrTdYD.js} +0 -0
- /package/dist/core/{SliceWipe-gSs_VRwf.js → SliceWipe-BR5Qr38C.js} +0 -0
- /package/dist/core/{Smoke-kzRXFLW9.js → Smoke-DoW6Brlo.js} +0 -0
- /package/dist/core/{SmokeFill-DQZeqiwX.js → SmokeFill-CXHhKX8u.js} +0 -0
- /package/dist/core/{SmokeFlow-n23YvKoI.js → SmokeFlow-mRJ_JcnZ.js} +0 -0
- /package/dist/core/{Solarize-DINiQSz1.js → Solarize-BNCG4TCa.js} +0 -0
- /package/dist/core/{SolidColor-Cu_9b_my.js → SolidColor-dYxjV0YF.js} +0 -0
- /package/dist/core/{Spherize-BLY2eqBV.js → Spherize-6d5WZIZV.js} +0 -0
- /package/dist/core/{Spiral-CWCmvI3m.js → Spiral-IOZ-Zm0_.js} +0 -0
- /package/dist/core/{Star-9WSeF-vW.js → Star-D9txpy4P.js} +0 -0
- /package/dist/core/{Stone-CVO2Ey8i.js → Stone-H2qLOvGJ.js} +0 -0
- /package/dist/core/{Strands-D9Sz1vX9.js → Strands-Db6_uJAi.js} +0 -0
- /package/dist/core/{Stretch-DMT2Y6kN.js → Stretch-BIFeD7-1.js} +0 -0
- /package/dist/core/{Stripes-DPVbOQkX.js → Stripes-5YZhE4bc.js} +0 -0
- /package/dist/core/{StudioBackground-5JgYClrr.js → StudioBackground-B16ICQTt.js} +0 -0
- /package/dist/core/{SunBurst-Din5CIAU.js → SunBurst-DSUFLqjC.js} +0 -0
- /package/dist/core/{Surface3D-CW2ApEgt.js → Surface3D-BoliMAeJ.js} +0 -0
- /package/dist/core/{Swirl-DrchXPfh.js → Swirl-CozBN2cj.js} +0 -0
- /package/dist/core/{Teardrop-CDt_XA4d.js → Teardrop-D8uqqHu8.js} +0 -0
- /package/dist/core/{TiltShift-DJVcMb_M.js → TiltShift-CNc1M7bT.js} +0 -0
- /package/dist/core/{TimeTrail-D1Gir7BK.js → TimeTrail-BFuqrI-l.js} +0 -0
- /package/dist/core/{Tint-Cak_PyOJ.js → Tint-BzCm1m93.js} +0 -0
- /package/dist/core/{Trapezoid-DnFhlKCD.js → Trapezoid-Dc6dpnCU.js} +0 -0
- /package/dist/core/{TriangularGrid-BE9CgVlb.js → TriangularGrid-BMemTQ8X.js} +0 -0
- /package/dist/core/{Tritone-mqU9b4YZ.js → Tritone-XnyfjYXL.js} +0 -0
- /package/dist/core/{Truchet-yLdaw6z4.js → Truchet-DUbAZPvr.js} +0 -0
- /package/dist/core/{Twirl-SA6uh8pI.js → Twirl-Dj6ZOh7V.js} +0 -0
- /package/dist/core/{VHS-Ch-bVeit.js → VHS-DcN38Sa-.js} +0 -0
- /package/dist/core/{VenetianBlinds-CboEoPIZ.js → VenetianBlinds-Dsix9S6Y.js} +0 -0
- /package/dist/core/{Vesica-DmJWzk7E.js → Vesica-BvLPrNBY.js} +0 -0
- /package/dist/core/{Vibrance-7rW_G3qT.js → Vibrance-B3F1IOJC.js} +0 -0
- /package/dist/core/{VideoTexture-Ctk5_1F8.js → VideoTexture-rZnbkY1j.js} +0 -0
- /package/dist/core/{Vignette-DXtlR5LT.js → Vignette-D747S9Un.js} +0 -0
- /package/dist/core/{Voronoi-B0ZrQ6QO.js → Voronoi-tdjJp1Yz.js} +0 -0
- /package/dist/core/{Water-DfwGqSnM.js → Water-wnYFmeVF.js} +0 -0
- /package/dist/core/{Watercolor-BAShYSu7.js → Watercolor-DlrWTnkX.js} +0 -0
- /package/dist/core/{WaveDistortion-Cj4QBBKm.js → WaveDistortion-11QwOfVR.js} +0 -0
- /package/dist/core/{WaveletNoise-DYiU_ziD.js → WaveletNoise-DWOzHG3M.js} +0 -0
- /package/dist/core/{Weave-DVefdB9i.js → Weave-CdGwj7cZ.js} +0 -0
- /package/dist/core/{WebcamTexture-BO9jNxcP.js → WebcamTexture-CihYSbzd.js} +0 -0
- /package/dist/core/{Wool-D304TmpD.js → Wool-DKCBMabi.js} +0 -0
- /package/dist/core/{WorleyNoise-B5FBTklZ.js → WorleyNoise-BjD32UOl.js} +0 -0
- /package/dist/core/{ZoomBlur-DxySopLs.js → ZoomBlur-BnRTijPn.js} +0 -0
- /package/dist/core/{fonts-v_F1SFl9.js → fonts-DFuXI3Hk.js} +0 -0
package/dist/registry.js
CHANGED
|
@@ -25021,6 +25021,591 @@ export const shaderRegistry = [
|
|
|
25021
25021
|
}
|
|
25022
25022
|
}
|
|
25023
25023
|
},
|
|
25024
|
+
{
|
|
25025
|
+
"name": "LensDistortion",
|
|
25026
|
+
"category": "Stylize",
|
|
25027
|
+
"description": "Split content into shifting chromatic layers with barrel or pincushion lens warp. Powered by Paper Shaders.",
|
|
25028
|
+
"fileName": "LensDistortion",
|
|
25029
|
+
"requiresChild": true,
|
|
25030
|
+
"definition": {
|
|
25031
|
+
"name": "LensDistortion",
|
|
25032
|
+
"boundingBoxDeclaration": {
|
|
25033
|
+
"aspectRatio": null
|
|
25034
|
+
},
|
|
25035
|
+
"category": "Stylize",
|
|
25036
|
+
"description": "Split content into shifting chromatic layers with barrel or pincushion lens warp. Powered by Paper Shaders.",
|
|
25037
|
+
"requiresRTT": true,
|
|
25038
|
+
"requiresChild": true,
|
|
25039
|
+
"props": {
|
|
25040
|
+
"center": {
|
|
25041
|
+
"default": {
|
|
25042
|
+
"x": 0.5,
|
|
25043
|
+
"y": 0.5
|
|
25044
|
+
},
|
|
25045
|
+
"description": "The center point of the lens effect — the focus zone, lens warp, circle crop and swirl all pivot around it",
|
|
25046
|
+
"ui": {
|
|
25047
|
+
"type": "position",
|
|
25048
|
+
"label": "Center",
|
|
25049
|
+
"group": "Position"
|
|
25050
|
+
}
|
|
25051
|
+
},
|
|
25052
|
+
"spread": {
|
|
25053
|
+
"default": 0.6,
|
|
25054
|
+
"description": "Strength of the color split; how far the color layers are pushed apart (0 is off)",
|
|
25055
|
+
"ui": {
|
|
25056
|
+
"type": [
|
|
25057
|
+
"range",
|
|
25058
|
+
"map"
|
|
25059
|
+
],
|
|
25060
|
+
"min": 0,
|
|
25061
|
+
"max": 1,
|
|
25062
|
+
"step": 0.01,
|
|
25063
|
+
"label": "Spread",
|
|
25064
|
+
"group": "Spread"
|
|
25065
|
+
}
|
|
25066
|
+
},
|
|
25067
|
+
"angle": {
|
|
25068
|
+
"default": 0,
|
|
25069
|
+
"description": "Direction of the spread in degrees",
|
|
25070
|
+
"ui": {
|
|
25071
|
+
"type": [
|
|
25072
|
+
"range",
|
|
25073
|
+
"map"
|
|
25074
|
+
],
|
|
25075
|
+
"min": 0,
|
|
25076
|
+
"max": 360,
|
|
25077
|
+
"step": 1,
|
|
25078
|
+
"label": "Angle",
|
|
25079
|
+
"group": "Spread"
|
|
25080
|
+
}
|
|
25081
|
+
},
|
|
25082
|
+
"perspective": {
|
|
25083
|
+
"default": 0.1,
|
|
25084
|
+
"description": "Shapes the spread direction from a straight line (0) to a radial burst out from the centre (1)",
|
|
25085
|
+
"ui": {
|
|
25086
|
+
"type": [
|
|
25087
|
+
"range",
|
|
25088
|
+
"map"
|
|
25089
|
+
],
|
|
25090
|
+
"min": 0,
|
|
25091
|
+
"max": 1,
|
|
25092
|
+
"step": 0.01,
|
|
25093
|
+
"label": "Perspective",
|
|
25094
|
+
"group": "Spread"
|
|
25095
|
+
}
|
|
25096
|
+
},
|
|
25097
|
+
"bias": {
|
|
25098
|
+
"default": 1,
|
|
25099
|
+
"description": "Shifts the colors toward one end of the spread; 0 spaces them evenly",
|
|
25100
|
+
"ui": {
|
|
25101
|
+
"type": [
|
|
25102
|
+
"range",
|
|
25103
|
+
"map"
|
|
25104
|
+
],
|
|
25105
|
+
"min": -1,
|
|
25106
|
+
"max": 1,
|
|
25107
|
+
"step": 0.01,
|
|
25108
|
+
"label": "Bias",
|
|
25109
|
+
"group": "Spread"
|
|
25110
|
+
}
|
|
25111
|
+
},
|
|
25112
|
+
"count": {
|
|
25113
|
+
"default": 35,
|
|
25114
|
+
"description": "Number of sampled color layers along the spread; higher is smoother and costlier",
|
|
25115
|
+
"ui": {
|
|
25116
|
+
"type": [
|
|
25117
|
+
"range",
|
|
25118
|
+
"map"
|
|
25119
|
+
],
|
|
25120
|
+
"min": 2,
|
|
25121
|
+
"max": 50,
|
|
25122
|
+
"step": 1,
|
|
25123
|
+
"label": "Count",
|
|
25124
|
+
"group": "Spread"
|
|
25125
|
+
}
|
|
25126
|
+
},
|
|
25127
|
+
"dispersion": {
|
|
25128
|
+
"default": 1,
|
|
25129
|
+
"description": "Overall amount of color dispersion; 1 gives each layer its own color from the spectrum, 0 keeps the original color",
|
|
25130
|
+
"ui": {
|
|
25131
|
+
"type": [
|
|
25132
|
+
"range",
|
|
25133
|
+
"map"
|
|
25134
|
+
],
|
|
25135
|
+
"min": 0,
|
|
25136
|
+
"max": 1,
|
|
25137
|
+
"step": 0.01,
|
|
25138
|
+
"label": "Dispersion",
|
|
25139
|
+
"group": "Dispersion"
|
|
25140
|
+
}
|
|
25141
|
+
},
|
|
25142
|
+
"dispersionShift": {
|
|
25143
|
+
"default": 0,
|
|
25144
|
+
"description": "Balance of the dispersion between a soft circular zone at the centre and the rest; -1 keeps it in the centre only, 1 at the edges only",
|
|
25145
|
+
"ui": {
|
|
25146
|
+
"type": [
|
|
25147
|
+
"range",
|
|
25148
|
+
"map"
|
|
25149
|
+
],
|
|
25150
|
+
"min": -1,
|
|
25151
|
+
"max": 1,
|
|
25152
|
+
"step": 0.01,
|
|
25153
|
+
"label": "Shift",
|
|
25154
|
+
"group": "Dispersion"
|
|
25155
|
+
}
|
|
25156
|
+
},
|
|
25157
|
+
"dispersionColor": {
|
|
25158
|
+
"default": 0.6,
|
|
25159
|
+
"description": "Rotates the dispersion colors around the hue wheel, 0 to 1 for a full turn",
|
|
25160
|
+
"ui": {
|
|
25161
|
+
"type": [
|
|
25162
|
+
"range",
|
|
25163
|
+
"map"
|
|
25164
|
+
],
|
|
25165
|
+
"min": 0,
|
|
25166
|
+
"max": 1,
|
|
25167
|
+
"step": 0.01,
|
|
25168
|
+
"label": "Hue",
|
|
25169
|
+
"group": "Dispersion"
|
|
25170
|
+
}
|
|
25171
|
+
},
|
|
25172
|
+
"focusCenter": {
|
|
25173
|
+
"default": 0.8,
|
|
25174
|
+
"description": "Reduces the spread in a circular zone at the centre; 0 keeps it full to the centre",
|
|
25175
|
+
"ui": {
|
|
25176
|
+
"type": [
|
|
25177
|
+
"range",
|
|
25178
|
+
"map"
|
|
25179
|
+
],
|
|
25180
|
+
"min": 0,
|
|
25181
|
+
"max": 1,
|
|
25182
|
+
"step": 0.01,
|
|
25183
|
+
"label": "Focus Center",
|
|
25184
|
+
"group": "Focus"
|
|
25185
|
+
}
|
|
25186
|
+
},
|
|
25187
|
+
"focusEdges": {
|
|
25188
|
+
"default": 1,
|
|
25189
|
+
"description": "Reduces the spread toward the edges; 1 restores the original image there",
|
|
25190
|
+
"ui": {
|
|
25191
|
+
"type": [
|
|
25192
|
+
"range",
|
|
25193
|
+
"map"
|
|
25194
|
+
],
|
|
25195
|
+
"min": 0,
|
|
25196
|
+
"max": 1,
|
|
25197
|
+
"step": 0.01,
|
|
25198
|
+
"label": "Focus Edges",
|
|
25199
|
+
"group": "Focus"
|
|
25200
|
+
}
|
|
25201
|
+
},
|
|
25202
|
+
"lensBulge": {
|
|
25203
|
+
"default": 0,
|
|
25204
|
+
"description": "Radial lens warp; positive bulges out like a fisheye, negative pinches in like a pincushion",
|
|
25205
|
+
"ui": {
|
|
25206
|
+
"type": [
|
|
25207
|
+
"range",
|
|
25208
|
+
"map"
|
|
25209
|
+
],
|
|
25210
|
+
"min": -1,
|
|
25211
|
+
"max": 1,
|
|
25212
|
+
"step": 0.01,
|
|
25213
|
+
"label": "Bulge",
|
|
25214
|
+
"group": "Lens"
|
|
25215
|
+
}
|
|
25216
|
+
},
|
|
25217
|
+
"lensCircle": {
|
|
25218
|
+
"default": 0,
|
|
25219
|
+
"description": "Squeezes pixels outside the inscribed circle inward so the outline becomes a circle",
|
|
25220
|
+
"ui": {
|
|
25221
|
+
"type": [
|
|
25222
|
+
"range",
|
|
25223
|
+
"map"
|
|
25224
|
+
],
|
|
25225
|
+
"min": 0,
|
|
25226
|
+
"max": 1,
|
|
25227
|
+
"step": 0.01,
|
|
25228
|
+
"label": "Circle",
|
|
25229
|
+
"group": "Lens"
|
|
25230
|
+
}
|
|
25231
|
+
},
|
|
25232
|
+
"swirl": {
|
|
25233
|
+
"default": 0.35,
|
|
25234
|
+
"description": "Rotates the color layers around the centre by an angle growing along the spread; 0 is off",
|
|
25235
|
+
"ui": {
|
|
25236
|
+
"type": [
|
|
25237
|
+
"range",
|
|
25238
|
+
"map"
|
|
25239
|
+
],
|
|
25240
|
+
"min": -1,
|
|
25241
|
+
"max": 1,
|
|
25242
|
+
"step": 0.01,
|
|
25243
|
+
"label": "Swirl",
|
|
25244
|
+
"group": "Lens"
|
|
25245
|
+
}
|
|
25246
|
+
},
|
|
25247
|
+
"noise": {
|
|
25248
|
+
"default": 0,
|
|
25249
|
+
"description": "Scatters the spread direction with noise; 0 is off",
|
|
25250
|
+
"ui": {
|
|
25251
|
+
"type": [
|
|
25252
|
+
"range",
|
|
25253
|
+
"map"
|
|
25254
|
+
],
|
|
25255
|
+
"min": 0,
|
|
25256
|
+
"max": 1,
|
|
25257
|
+
"step": 0.01,
|
|
25258
|
+
"label": "Noise",
|
|
25259
|
+
"group": "Noise"
|
|
25260
|
+
}
|
|
25261
|
+
},
|
|
25262
|
+
"noiseFrequency": {
|
|
25263
|
+
"default": 0.25,
|
|
25264
|
+
"description": "Frequency of the direction noise; higher is finer (no effect with noise at 0)",
|
|
25265
|
+
"ui": {
|
|
25266
|
+
"type": [
|
|
25267
|
+
"range",
|
|
25268
|
+
"map"
|
|
25269
|
+
],
|
|
25270
|
+
"min": 0,
|
|
25271
|
+
"max": 1,
|
|
25272
|
+
"step": 0.01,
|
|
25273
|
+
"label": "Frequency",
|
|
25274
|
+
"group": "Noise"
|
|
25275
|
+
}
|
|
25276
|
+
},
|
|
25277
|
+
"noiseOffset": {
|
|
25278
|
+
"default": 0,
|
|
25279
|
+
"description": "Offsets the noise pattern for a different seed (no effect with noise at 0)",
|
|
25280
|
+
"ui": {
|
|
25281
|
+
"type": [
|
|
25282
|
+
"range",
|
|
25283
|
+
"map"
|
|
25284
|
+
],
|
|
25285
|
+
"min": 0,
|
|
25286
|
+
"max": 1,
|
|
25287
|
+
"step": 0.01,
|
|
25288
|
+
"label": "Seed",
|
|
25289
|
+
"group": "Noise"
|
|
25290
|
+
}
|
|
25291
|
+
},
|
|
25292
|
+
"grainMixer": {
|
|
25293
|
+
"default": 0,
|
|
25294
|
+
"description": "Scatters the spread with grain noise, breaking up the edges of the color layers",
|
|
25295
|
+
"ui": {
|
|
25296
|
+
"type": [
|
|
25297
|
+
"range",
|
|
25298
|
+
"map"
|
|
25299
|
+
],
|
|
25300
|
+
"min": 0,
|
|
25301
|
+
"max": 1,
|
|
25302
|
+
"step": 0.01,
|
|
25303
|
+
"label": "Grain Mixer",
|
|
25304
|
+
"group": "Grain"
|
|
25305
|
+
}
|
|
25306
|
+
},
|
|
25307
|
+
"grainOverlay": {
|
|
25308
|
+
"default": 0,
|
|
25309
|
+
"description": "Post-processing black/white grain overlay",
|
|
25310
|
+
"ui": {
|
|
25311
|
+
"type": [
|
|
25312
|
+
"range",
|
|
25313
|
+
"map"
|
|
25314
|
+
],
|
|
25315
|
+
"min": 0,
|
|
25316
|
+
"max": 1,
|
|
25317
|
+
"step": 0.01,
|
|
25318
|
+
"label": "Grain Overlay",
|
|
25319
|
+
"group": "Grain"
|
|
25320
|
+
}
|
|
25321
|
+
}
|
|
25322
|
+
}
|
|
25323
|
+
},
|
|
25324
|
+
"propsMetadata": {
|
|
25325
|
+
"center": {
|
|
25326
|
+
"ui": {
|
|
25327
|
+
"type": "position",
|
|
25328
|
+
"label": "Center",
|
|
25329
|
+
"group": "Position"
|
|
25330
|
+
},
|
|
25331
|
+
"default": {
|
|
25332
|
+
"x": 0.5,
|
|
25333
|
+
"y": 0.5
|
|
25334
|
+
},
|
|
25335
|
+
"description": "The center point of the lens effect — the focus zone, lens warp, circle crop and swirl all pivot around it"
|
|
25336
|
+
},
|
|
25337
|
+
"spread": {
|
|
25338
|
+
"ui": {
|
|
25339
|
+
"type": [
|
|
25340
|
+
"range",
|
|
25341
|
+
"map"
|
|
25342
|
+
],
|
|
25343
|
+
"min": 0,
|
|
25344
|
+
"max": 1,
|
|
25345
|
+
"step": 0.01,
|
|
25346
|
+
"label": "Spread",
|
|
25347
|
+
"group": "Spread"
|
|
25348
|
+
},
|
|
25349
|
+
"default": 0.6,
|
|
25350
|
+
"description": "Strength of the color split; how far the color layers are pushed apart (0 is off)"
|
|
25351
|
+
},
|
|
25352
|
+
"angle": {
|
|
25353
|
+
"ui": {
|
|
25354
|
+
"type": [
|
|
25355
|
+
"range",
|
|
25356
|
+
"map"
|
|
25357
|
+
],
|
|
25358
|
+
"min": 0,
|
|
25359
|
+
"max": 360,
|
|
25360
|
+
"step": 1,
|
|
25361
|
+
"label": "Angle",
|
|
25362
|
+
"group": "Spread"
|
|
25363
|
+
},
|
|
25364
|
+
"default": 0,
|
|
25365
|
+
"description": "Direction of the spread in degrees"
|
|
25366
|
+
},
|
|
25367
|
+
"perspective": {
|
|
25368
|
+
"ui": {
|
|
25369
|
+
"type": [
|
|
25370
|
+
"range",
|
|
25371
|
+
"map"
|
|
25372
|
+
],
|
|
25373
|
+
"min": 0,
|
|
25374
|
+
"max": 1,
|
|
25375
|
+
"step": 0.01,
|
|
25376
|
+
"label": "Perspective",
|
|
25377
|
+
"group": "Spread"
|
|
25378
|
+
},
|
|
25379
|
+
"default": 0.1,
|
|
25380
|
+
"description": "Shapes the spread direction from a straight line (0) to a radial burst out from the centre (1)"
|
|
25381
|
+
},
|
|
25382
|
+
"bias": {
|
|
25383
|
+
"ui": {
|
|
25384
|
+
"type": [
|
|
25385
|
+
"range",
|
|
25386
|
+
"map"
|
|
25387
|
+
],
|
|
25388
|
+
"min": -1,
|
|
25389
|
+
"max": 1,
|
|
25390
|
+
"step": 0.01,
|
|
25391
|
+
"label": "Bias",
|
|
25392
|
+
"group": "Spread"
|
|
25393
|
+
},
|
|
25394
|
+
"default": 1,
|
|
25395
|
+
"description": "Shifts the colors toward one end of the spread; 0 spaces them evenly"
|
|
25396
|
+
},
|
|
25397
|
+
"count": {
|
|
25398
|
+
"ui": {
|
|
25399
|
+
"type": [
|
|
25400
|
+
"range",
|
|
25401
|
+
"map"
|
|
25402
|
+
],
|
|
25403
|
+
"min": 2,
|
|
25404
|
+
"max": 50,
|
|
25405
|
+
"step": 1,
|
|
25406
|
+
"label": "Count",
|
|
25407
|
+
"group": "Spread"
|
|
25408
|
+
},
|
|
25409
|
+
"default": 35,
|
|
25410
|
+
"description": "Number of sampled color layers along the spread; higher is smoother and costlier"
|
|
25411
|
+
},
|
|
25412
|
+
"dispersion": {
|
|
25413
|
+
"ui": {
|
|
25414
|
+
"type": [
|
|
25415
|
+
"range",
|
|
25416
|
+
"map"
|
|
25417
|
+
],
|
|
25418
|
+
"min": 0,
|
|
25419
|
+
"max": 1,
|
|
25420
|
+
"step": 0.01,
|
|
25421
|
+
"label": "Dispersion",
|
|
25422
|
+
"group": "Dispersion"
|
|
25423
|
+
},
|
|
25424
|
+
"default": 1,
|
|
25425
|
+
"description": "Overall amount of color dispersion; 1 gives each layer its own color from the spectrum, 0 keeps the original color"
|
|
25426
|
+
},
|
|
25427
|
+
"dispersionShift": {
|
|
25428
|
+
"ui": {
|
|
25429
|
+
"type": [
|
|
25430
|
+
"range",
|
|
25431
|
+
"map"
|
|
25432
|
+
],
|
|
25433
|
+
"min": -1,
|
|
25434
|
+
"max": 1,
|
|
25435
|
+
"step": 0.01,
|
|
25436
|
+
"label": "Shift",
|
|
25437
|
+
"group": "Dispersion"
|
|
25438
|
+
},
|
|
25439
|
+
"default": 0,
|
|
25440
|
+
"description": "Balance of the dispersion between a soft circular zone at the centre and the rest; -1 keeps it in the centre only, 1 at the edges only"
|
|
25441
|
+
},
|
|
25442
|
+
"dispersionColor": {
|
|
25443
|
+
"ui": {
|
|
25444
|
+
"type": [
|
|
25445
|
+
"range",
|
|
25446
|
+
"map"
|
|
25447
|
+
],
|
|
25448
|
+
"min": 0,
|
|
25449
|
+
"max": 1,
|
|
25450
|
+
"step": 0.01,
|
|
25451
|
+
"label": "Hue",
|
|
25452
|
+
"group": "Dispersion"
|
|
25453
|
+
},
|
|
25454
|
+
"default": 0.6,
|
|
25455
|
+
"description": "Rotates the dispersion colors around the hue wheel, 0 to 1 for a full turn"
|
|
25456
|
+
},
|
|
25457
|
+
"focusCenter": {
|
|
25458
|
+
"ui": {
|
|
25459
|
+
"type": [
|
|
25460
|
+
"range",
|
|
25461
|
+
"map"
|
|
25462
|
+
],
|
|
25463
|
+
"min": 0,
|
|
25464
|
+
"max": 1,
|
|
25465
|
+
"step": 0.01,
|
|
25466
|
+
"label": "Focus Center",
|
|
25467
|
+
"group": "Focus"
|
|
25468
|
+
},
|
|
25469
|
+
"default": 0.8,
|
|
25470
|
+
"description": "Reduces the spread in a circular zone at the centre; 0 keeps it full to the centre"
|
|
25471
|
+
},
|
|
25472
|
+
"focusEdges": {
|
|
25473
|
+
"ui": {
|
|
25474
|
+
"type": [
|
|
25475
|
+
"range",
|
|
25476
|
+
"map"
|
|
25477
|
+
],
|
|
25478
|
+
"min": 0,
|
|
25479
|
+
"max": 1,
|
|
25480
|
+
"step": 0.01,
|
|
25481
|
+
"label": "Focus Edges",
|
|
25482
|
+
"group": "Focus"
|
|
25483
|
+
},
|
|
25484
|
+
"default": 1,
|
|
25485
|
+
"description": "Reduces the spread toward the edges; 1 restores the original image there"
|
|
25486
|
+
},
|
|
25487
|
+
"lensBulge": {
|
|
25488
|
+
"ui": {
|
|
25489
|
+
"type": [
|
|
25490
|
+
"range",
|
|
25491
|
+
"map"
|
|
25492
|
+
],
|
|
25493
|
+
"min": -1,
|
|
25494
|
+
"max": 1,
|
|
25495
|
+
"step": 0.01,
|
|
25496
|
+
"label": "Bulge",
|
|
25497
|
+
"group": "Lens"
|
|
25498
|
+
},
|
|
25499
|
+
"default": 0,
|
|
25500
|
+
"description": "Radial lens warp; positive bulges out like a fisheye, negative pinches in like a pincushion"
|
|
25501
|
+
},
|
|
25502
|
+
"lensCircle": {
|
|
25503
|
+
"ui": {
|
|
25504
|
+
"type": [
|
|
25505
|
+
"range",
|
|
25506
|
+
"map"
|
|
25507
|
+
],
|
|
25508
|
+
"min": 0,
|
|
25509
|
+
"max": 1,
|
|
25510
|
+
"step": 0.01,
|
|
25511
|
+
"label": "Circle",
|
|
25512
|
+
"group": "Lens"
|
|
25513
|
+
},
|
|
25514
|
+
"default": 0,
|
|
25515
|
+
"description": "Squeezes pixels outside the inscribed circle inward so the outline becomes a circle"
|
|
25516
|
+
},
|
|
25517
|
+
"swirl": {
|
|
25518
|
+
"ui": {
|
|
25519
|
+
"type": [
|
|
25520
|
+
"range",
|
|
25521
|
+
"map"
|
|
25522
|
+
],
|
|
25523
|
+
"min": -1,
|
|
25524
|
+
"max": 1,
|
|
25525
|
+
"step": 0.01,
|
|
25526
|
+
"label": "Swirl",
|
|
25527
|
+
"group": "Lens"
|
|
25528
|
+
},
|
|
25529
|
+
"default": 0.35,
|
|
25530
|
+
"description": "Rotates the color layers around the centre by an angle growing along the spread; 0 is off"
|
|
25531
|
+
},
|
|
25532
|
+
"noise": {
|
|
25533
|
+
"ui": {
|
|
25534
|
+
"type": [
|
|
25535
|
+
"range",
|
|
25536
|
+
"map"
|
|
25537
|
+
],
|
|
25538
|
+
"min": 0,
|
|
25539
|
+
"max": 1,
|
|
25540
|
+
"step": 0.01,
|
|
25541
|
+
"label": "Noise",
|
|
25542
|
+
"group": "Noise"
|
|
25543
|
+
},
|
|
25544
|
+
"default": 0,
|
|
25545
|
+
"description": "Scatters the spread direction with noise; 0 is off"
|
|
25546
|
+
},
|
|
25547
|
+
"noiseFrequency": {
|
|
25548
|
+
"ui": {
|
|
25549
|
+
"type": [
|
|
25550
|
+
"range",
|
|
25551
|
+
"map"
|
|
25552
|
+
],
|
|
25553
|
+
"min": 0,
|
|
25554
|
+
"max": 1,
|
|
25555
|
+
"step": 0.01,
|
|
25556
|
+
"label": "Frequency",
|
|
25557
|
+
"group": "Noise"
|
|
25558
|
+
},
|
|
25559
|
+
"default": 0.25,
|
|
25560
|
+
"description": "Frequency of the direction noise; higher is finer (no effect with noise at 0)"
|
|
25561
|
+
},
|
|
25562
|
+
"noiseOffset": {
|
|
25563
|
+
"ui": {
|
|
25564
|
+
"type": [
|
|
25565
|
+
"range",
|
|
25566
|
+
"map"
|
|
25567
|
+
],
|
|
25568
|
+
"min": 0,
|
|
25569
|
+
"max": 1,
|
|
25570
|
+
"step": 0.01,
|
|
25571
|
+
"label": "Seed",
|
|
25572
|
+
"group": "Noise"
|
|
25573
|
+
},
|
|
25574
|
+
"default": 0,
|
|
25575
|
+
"description": "Offsets the noise pattern for a different seed (no effect with noise at 0)"
|
|
25576
|
+
},
|
|
25577
|
+
"grainMixer": {
|
|
25578
|
+
"ui": {
|
|
25579
|
+
"type": [
|
|
25580
|
+
"range",
|
|
25581
|
+
"map"
|
|
25582
|
+
],
|
|
25583
|
+
"min": 0,
|
|
25584
|
+
"max": 1,
|
|
25585
|
+
"step": 0.01,
|
|
25586
|
+
"label": "Grain Mixer",
|
|
25587
|
+
"group": "Grain"
|
|
25588
|
+
},
|
|
25589
|
+
"default": 0,
|
|
25590
|
+
"description": "Scatters the spread with grain noise, breaking up the edges of the color layers"
|
|
25591
|
+
},
|
|
25592
|
+
"grainOverlay": {
|
|
25593
|
+
"ui": {
|
|
25594
|
+
"type": [
|
|
25595
|
+
"range",
|
|
25596
|
+
"map"
|
|
25597
|
+
],
|
|
25598
|
+
"min": 0,
|
|
25599
|
+
"max": 1,
|
|
25600
|
+
"step": 0.01,
|
|
25601
|
+
"label": "Grain Overlay",
|
|
25602
|
+
"group": "Grain"
|
|
25603
|
+
},
|
|
25604
|
+
"default": 0,
|
|
25605
|
+
"description": "Post-processing black/white grain overlay"
|
|
25606
|
+
}
|
|
25607
|
+
}
|
|
25608
|
+
},
|
|
25024
25609
|
{
|
|
25025
25610
|
"name": "LensFlare",
|
|
25026
25611
|
"category": "Stylize",
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { BlendMode, PropDriver, TransformConfig, BoundingBoxConfig, LayoutConfig } from '../../core';
|
|
3
|
+
import { ComponentProps } from '../../core/shaders/LensDistortion';
|
|
4
|
+
export type { ComponentProps };
|
|
5
|
+
/**
|
|
6
|
+
* Base props that all shader components have
|
|
7
|
+
*/
|
|
8
|
+
interface BaseShaderProps {
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
blendMode?: BlendMode;
|
|
11
|
+
opacity?: number;
|
|
12
|
+
visible?: boolean;
|
|
13
|
+
id?: string;
|
|
14
|
+
maskSource?: string;
|
|
15
|
+
maskType?: string;
|
|
16
|
+
renderOrder?: number;
|
|
17
|
+
transform?: Partial<TransformConfig>;
|
|
18
|
+
boundingBox?: Partial<BoundingBoxConfig>;
|
|
19
|
+
flow?: LayoutConfig;
|
|
20
|
+
absolute?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Component-specific props that merge base props with shader-specific props
|
|
24
|
+
* Note: ComponentProps are made optional since they have defaults from the shader definition
|
|
25
|
+
*/
|
|
26
|
+
type ShaderComponentProps = BaseShaderProps & Partial<Omit<ComponentProps, 'center' | 'spread' | 'angle' | 'perspective' | 'bias' | 'count' | 'dispersion' | 'dispersionShift' | 'dispersionColor' | 'focusCenter' | 'focusEdges' | 'lensBulge' | 'lensCircle' | 'swirl' | 'noise' | 'noiseFrequency' | 'noiseOffset' | 'grainMixer' | 'grainOverlay'>> & {
|
|
27
|
+
center?: ComponentProps['center'] | PropDriver;
|
|
28
|
+
spread?: ComponentProps['spread'] | PropDriver;
|
|
29
|
+
angle?: ComponentProps['angle'] | PropDriver;
|
|
30
|
+
perspective?: ComponentProps['perspective'] | PropDriver;
|
|
31
|
+
bias?: ComponentProps['bias'] | PropDriver;
|
|
32
|
+
count?: ComponentProps['count'] | PropDriver;
|
|
33
|
+
dispersion?: ComponentProps['dispersion'] | PropDriver;
|
|
34
|
+
dispersionShift?: ComponentProps['dispersionShift'] | PropDriver;
|
|
35
|
+
dispersionColor?: ComponentProps['dispersionColor'] | PropDriver;
|
|
36
|
+
focusCenter?: ComponentProps['focusCenter'] | PropDriver;
|
|
37
|
+
focusEdges?: ComponentProps['focusEdges'] | PropDriver;
|
|
38
|
+
lensBulge?: ComponentProps['lensBulge'] | PropDriver;
|
|
39
|
+
lensCircle?: ComponentProps['lensCircle'] | PropDriver;
|
|
40
|
+
swirl?: ComponentProps['swirl'] | PropDriver;
|
|
41
|
+
noise?: ComponentProps['noise'] | PropDriver;
|
|
42
|
+
noiseFrequency?: ComponentProps['noiseFrequency'] | PropDriver;
|
|
43
|
+
noiseOffset?: ComponentProps['noiseOffset'] | PropDriver;
|
|
44
|
+
grainMixer?: ComponentProps['grainMixer'] | PropDriver;
|
|
45
|
+
grainOverlay?: ComponentProps['grainOverlay'] | PropDriver;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* The main Solid wrapper component for Shader shader nodes
|
|
49
|
+
*/
|
|
50
|
+
export default function ShaderComponent(props: ShaderComponentProps): JSX.Element;
|
|
51
|
+
//# sourceMappingURL=LensDistortion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LensDistortion.d.ts","sourceRoot":"","sources":["../../src/components/LensDistortion.tsx"],"names":[],"mappings":"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"}
|