shaders 3.1.455 → 3.1.456
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -2
- package/dist/core/{Aurora-CTWNhlNr.js → Aurora-A5yag1_A.js} +1 -1
- package/dist/core/{BlockDissolve-DwWPjla0.js → BlockDissolve-B9xWZC6U.js} +1 -1
- package/dist/core/{BlockNoise-BMt760_p.js → BlockNoise-Csb39Mqw.js} +1 -1
- package/dist/core/{BlueNoise-Cfo_HthN.js → BlueNoise-CnSe6lOE.js} +1 -1
- package/dist/core/{Boids-CtvT1VsV.js → Boids-C7NstB5L.js} +1 -1
- package/dist/core/{BrushedMetal-BAgNgeo1.js → BrushedMetal-D2X_nM8z.js} +1 -1
- package/dist/core/{CarbonFiber-mK6eHIpy.js → CarbonFiber-BFogRBFa.js} +1 -1
- package/dist/core/{Chalkboard-BizZEHlC.js → Chalkboard-DEuq4TWm.js} +8 -39
- package/dist/core/{Chrome-DoPYr4Kd.js → Chrome-DdV9RY9D.js} +1 -1
- package/dist/core/{Crystal-B9DIgDD7.js → Crystal-CB_U2g2k.js} +1 -1
- package/dist/core/{CurlNoise-D6kSV8PJ.js → CurlNoise-CFAQHy-5.js} +1 -1
- package/dist/core/{DataMosh-CjVK_gxL.js → DataMosh-C_esIK54.js} +8 -20
- package/dist/core/{DiffuseBlur-DUBfHpUN.js → DiffuseBlur-DmPHOfr_.js} +8 -55
- package/dist/core/{Dither-B4lhnNLA.js → Dither-CBsFenFW.js} +8 -39
- package/dist/core/{Engraving-DNNHKvIr.js → Engraving-CmNKAHmF.js} +1 -1
- package/dist/core/{ErosionNoise-w1aTuwY4.js → ErosionNoise-BjD0wAyD.js} +1 -1
- package/dist/core/{FilmGrain-BeZQzxdU.js → FilmGrain-CgvcPFDC.js} +29 -43
- package/dist/core/{FloatingParticles-Ch5OJjCc.js → FloatingParticles-BGig0_Ks.js} +1 -1
- package/dist/core/{FlowField-Cime_Fqy.js → FlowField-0I_PwtkD.js} +1 -1
- package/dist/core/{FlowingGradient-DL1e3OKu.js → FlowingGradient-ClUwpsZJ.js} +1 -1
- package/dist/core/{Fog-DvOvVKbF.js → Fog-DxFsHnT2.js} +51 -115
- package/dist/core/{FractalNoise-Bu8FbMYX.js → FractalNoise-CgR9wvoG.js} +1 -1
- package/dist/core/{Frost-BnE3EI6s.js → Frost-BL4zkGjj.js} +1 -1
- package/dist/core/{GaborNoise-BZFyQbDr.js → GaborNoise-BHDznYFh.js} +1 -1
- package/dist/core/{Glitch-nokyLk8Q.js → Glitch-D-QTlz5D.js} +7 -24
- package/dist/core/{Godrays-fglKeS0z.js → Godrays-Bh6Idg3p.js} +8 -43
- package/dist/core/{Heatmap-Bp0wi8r1.js → Heatmap-DhvtrL45.js} +1 -1
- package/dist/core/{Hologram-B-090nzV.js → Hologram-DR88qD5X.js} +8 -40
- package/dist/core/{Holographic-CSIQUm1_.js → Holographic-DKc_nNnT.js} +1 -1
- package/dist/core/{LightEdge-l2zPIeMQ.js → LightEdge-CF0k0vMa.js} +1 -1
- package/dist/core/{LightLeak-BSy19CB6.js → LightLeak-Bu6xFjg-.js} +1 -1
- package/dist/core/{LiquidMetal-BbyxqZoO.js → LiquidMetal-Bhenyeg-.js} +1 -1
- package/dist/core/{MagneticFilings-5NVqpsrW.js → MagneticFilings-Bn5DZWor.js} +1 -1
- package/dist/core/{Marble-CzoJcXvo.js → Marble-CSOGQ6C0.js} +1 -1
- package/dist/core/{NoiseDissolve-DxvqR71w.js → NoiseDissolve-B-fFjiGJ.js} +1 -1
- package/dist/core/{Paper-Bn3DETI2.js → Paper-w8M4w_Sm.js} +1 -1
- package/dist/core/{ParticleField-CUtlCqxz.js → ParticleField-UGf3Daat.js} +1 -1
- package/dist/core/{ParticleFlow-Ck5Ta_Rj.js → ParticleFlow-C7vEbMS3.js} +1 -1
- package/dist/core/{Particles-rnTAu4Mr.js → Particles-CumYpD-5.js} +1 -1
- package/dist/core/{PerlinNoise-BUbmE_JA.js → PerlinNoise-sjc342lu.js} +1 -1
- package/dist/core/{PixelSort-CF0-TpU7.js → PixelSort-C7tv3A5u.js} +19 -41
- package/dist/core/{Plasma-DOH9gxWt.js → Plasma-DBzZcfQN.js} +1 -1
- package/dist/core/{Plastic-CQNoTl22.js → Plastic-C0Sl_sV1.js} +1 -1
- package/dist/core/{RandomBars-B7ZwitL3.js → RandomBars-B66TF6V8.js} +1 -1
- package/dist/core/{ReactionDiffusion--54drNkY.js → ReactionDiffusion-cYvl6ks9.js} +27 -55
- package/dist/core/{Scratches-Ih3Kx_UW.js → Scratches-CChXWpPg.js} +1 -1
- package/dist/core/{SimplexNoise-E7ssgWPN.js → SimplexNoise-bCC60yB9.js} +1 -1
- package/dist/core/{Stone-i7v3RIb9.js → Stone-xSVm7jNc.js} +2 -2
- package/dist/core/{Surface3D-DxzfMHn2.js → Surface3D-Dd_T3xvt.js} +1 -1
- package/dist/core/{VHS-Z23X9XD6.js → VHS-CGffLHVk.js} +32 -101
- package/dist/core/{Water-DlvNrnrU.js → Water-CGBvuzXj.js} +1 -1
- package/dist/core/{Watercolor-BWx4xdwk.js → Watercolor-CGOpgWt8.js} +1 -1
- package/dist/core/{WaveletNoise-CZS67VBU.js → WaveletNoise-B8MeveW8.js} +1 -1
- package/dist/core/{Wool-CEaWGZB1.js → Wool-CuhWR2jo.js} +2 -2
- package/dist/core/index.js +57 -57
- package/dist/core/{noise-Bd6IGS0W.js → noise-DX5Y_I--.js} +1 -1
- package/dist/core/{noiseStylize-CkeVSB9C.js → noiseStylize-BZD5cOJl.js} +1 -1
- package/dist/core/registry.js +57 -57
- package/dist/core/{shaderRegistry-DLSuwWtO.js → shaderRegistry-IG9k35Qx.js} +54 -54
- package/dist/core/shaders/Aurora/index.js +2 -2
- package/dist/core/shaders/BlockDissolve/index.js +2 -2
- package/dist/core/shaders/BlockNoise/index.js +2 -2
- package/dist/core/shaders/BlueNoise/index.js +2 -2
- package/dist/core/shaders/Boids/index.js +2 -2
- package/dist/core/shaders/BrushedMetal/index.js +2 -2
- package/dist/core/shaders/CarbonFiber/index.js +2 -2
- package/dist/core/shaders/Chalkboard/index.d.ts.map +1 -1
- package/dist/core/shaders/Chalkboard/index.js +2 -1
- package/dist/core/shaders/Chrome/index.js +2 -2
- package/dist/core/shaders/Crystal/index.js +2 -2
- package/dist/core/shaders/CurlNoise/index.js +2 -2
- package/dist/core/shaders/DataMosh/index.d.ts +3 -1
- package/dist/core/shaders/DataMosh/index.d.ts.map +1 -1
- package/dist/core/shaders/DataMosh/index.js +2 -1
- package/dist/core/shaders/DiffuseBlur/index.d.ts.map +1 -1
- package/dist/core/shaders/DiffuseBlur/index.js +2 -1
- package/dist/core/shaders/Dither/index.d.ts.map +1 -1
- package/dist/core/shaders/Dither/index.js +2 -1
- package/dist/core/shaders/Engraving/index.js +2 -2
- package/dist/core/shaders/ErosionNoise/index.js +2 -2
- package/dist/core/shaders/FilmGrain/index.d.ts.map +1 -1
- package/dist/core/shaders/FilmGrain/index.js +2 -1
- package/dist/core/shaders/FloatingParticles/index.js +2 -2
- package/dist/core/shaders/FlowField/index.js +2 -2
- package/dist/core/shaders/FlowingGradient/index.js +2 -2
- package/dist/core/shaders/Fog/index.d.ts.map +1 -1
- package/dist/core/shaders/Fog/index.js +2 -1
- package/dist/core/shaders/FractalNoise/index.js +2 -2
- package/dist/core/shaders/Frost/index.js +2 -2
- package/dist/core/shaders/GaborNoise/index.js +2 -2
- package/dist/core/shaders/Glitch/index.d.ts.map +1 -1
- package/dist/core/shaders/Glitch/index.js +2 -1
- package/dist/core/shaders/Godrays/index.d.ts.map +1 -1
- package/dist/core/shaders/Godrays/index.js +2 -1
- package/dist/core/shaders/Heatmap/index.js +2 -2
- package/dist/core/shaders/Hologram/index.d.ts.map +1 -1
- package/dist/core/shaders/Hologram/index.js +2 -2
- package/dist/core/shaders/Holographic/index.js +2 -2
- package/dist/core/shaders/LightEdge/index.js +2 -2
- package/dist/core/shaders/LightLeak/index.js +2 -2
- package/dist/core/shaders/LiquidMetal/index.js +2 -2
- package/dist/core/shaders/MagneticFilings/index.js +2 -2
- package/dist/core/shaders/Marble/index.js +2 -2
- package/dist/core/shaders/NoiseDissolve/index.js +2 -2
- package/dist/core/shaders/Paper/index.js +2 -2
- package/dist/core/shaders/ParticleField/index.js +2 -2
- package/dist/core/shaders/ParticleFlow/index.js +2 -2
- package/dist/core/shaders/Particles/index.js +2 -2
- package/dist/core/shaders/PerlinNoise/index.js +2 -2
- package/dist/core/shaders/PixelSort/index.d.ts +2 -1
- package/dist/core/shaders/PixelSort/index.d.ts.map +1 -1
- package/dist/core/shaders/PixelSort/index.js +2 -1
- package/dist/core/shaders/Plasma/index.js +2 -2
- package/dist/core/shaders/Plastic/index.js +2 -2
- package/dist/core/shaders/RandomBars/index.js +2 -2
- package/dist/core/shaders/ReactionDiffusion/index.d.ts.map +1 -1
- package/dist/core/shaders/ReactionDiffusion/index.js +2 -1
- package/dist/core/shaders/Scratches/index.js +2 -2
- package/dist/core/shaders/SimplexNoise/index.js +2 -2
- package/dist/core/shaders/Stone/index.js +3 -3
- package/dist/core/shaders/Surface3D/index.js +2 -2
- package/dist/core/shaders/VHS/index.d.ts.map +1 -1
- package/dist/core/shaders/VHS/index.js +2 -1
- package/dist/core/shaders/Water/index.js +2 -2
- package/dist/core/shaders/Watercolor/index.js +2 -2
- package/dist/core/shaders/WaveletNoise/index.js +2 -2
- package/dist/core/shaders/Wool/index.js +3 -3
- package/dist/js/bundle.js +69 -69
- package/dist/js/createShader.js +1 -1
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +70 -70
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
/* shaders@3.1.
|
|
2
|
+
/* shaders@3.1.456 CLI — npx shaders install-mcp. https://shaders.com */
|
|
3
3
|
import { createRequire as __cliCreateRequire } from "module";
|
|
4
4
|
const require = __cliCreateRequire(import.meta.url);
|
|
5
5
|
var Vi=Object.create;var sr=Object.defineProperty;var Yi=Object.getOwnPropertyDescriptor;var Gi=Object.getOwnPropertyNames;var Ki=Object.getPrototypeOf,qi=Object.prototype.hasOwnProperty;var Ji=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,i)=>(typeof require<"u"?require:t)[i]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var $=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var zi=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let u of Gi(t))!qi.call(e,u)&&u!==i&&sr(e,u,{get:()=>t[u],enumerable:!(r=Yi(t,u))||r.enumerable});return e};var Se=(e,t,i)=>(i=e!=null?Vi(Ki(e)):{},zi(t||!e||!e.__esModule?sr(i,"default",{value:e,enumerable:!0}):i,e));var Dt=$((ka,or)=>{"use strict";var ht={to(e,t){return t?`\x1B[${t+1};${e+1}H`:`\x1B[${e+1}G`},move(e,t){let i="";return e<0?i+=`\x1B[${-e}D`:e>0&&(i+=`\x1B[${e}C`),t<0?i+=`\x1B[${-t}A`:t>0&&(i+=`\x1B[${t}B`),i},up:(e=1)=>`\x1B[${e}A`,down:(e=1)=>`\x1B[${e}B`,forward:(e=1)=>`\x1B[${e}C`,backward:(e=1)=>`\x1B[${e}D`,nextLine:(e=1)=>"\x1B[E".repeat(e),prevLine:(e=1)=>"\x1B[F".repeat(e),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},Qi={up:(e=1)=>"\x1B[S".repeat(e),down:(e=1)=>"\x1B[T".repeat(e)},Zi={screen:"\x1B[2J",up:(e=1)=>"\x1B[1J".repeat(e),down:(e=1)=>"\x1B[J".repeat(e),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(e){let t="";for(let i=0;i<e;i++)t+=this.line+(i<e-1?ht.up():"");return e&&(t+=ht.left),t}};or.exports={cursor:ht,scroll:Qi,erase:Zi,beep:"\x07"}});var cr=$(($a,ft)=>{var Oe=process||{},lr=Oe.argv||[],Be=Oe.env||{},Xi=!(Be.NO_COLOR||lr.includes("--no-color"))&&(!!Be.FORCE_COLOR||lr.includes("--color")||Oe.platform==="win32"||(Oe.stdout||{}).isTTY&&Be.TERM!=="dumb"||!!Be.CI),eu=(e,t,i=e)=>r=>{let u=""+r,s=u.indexOf(t,e.length);return~s?e+tu(u,t,i,s)+t:e+u+t},tu=(e,t,i,r)=>{let u="",s=0;do u+=e.substring(s,r)+i,s=r+t.length,r=e.indexOf(t,s);while(~r);return u+e.substring(s)},ar=(e=Xi)=>{let t=e?eu:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};ft.exports=ar();ft.exports.createColors=ar});var Wn=$((vc,Un)=>{"use strict";var re=class e extends Error{constructor(t,i,r){super("[ParserError] "+t,i,r),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}},Ge=class{constructor(t){this.parser=t,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}},ve=class{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new Ge(this.parseStart)}parse(t){if(t.length===0||t.length==null)return;this._buf=String(t),this.ii=-1,this.char=-1;let i;for(;i===!1||this.nextChar();)i=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){this.char=1114112;let t;do t=this.state.parser,this.runOne();while(this.state.parser!==t);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(t){if(typeof t!="function")throw new re("Tried to set state to non-existent state: "+JSON.stringify(t));this.state.parser=t}goto(t){return this.next(t),this.runOne()}call(t,i){i&&this.next(i),this.stack.push(this.state),this.state=new Ge(t)}callNow(t,i){return this.call(t,i),this.runOne()}return(t){if(this.stack.length===0)throw this.error(new re("Stack underflow"));t===void 0&&(t=this.state.buf),this.state=this.stack.pop(),this.state.returned=t}returnNow(t){return this.return(t),this.runOne()}consume(){if(this.char===1114112)throw this.error(new re("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(t){return t.line=this.line,t.col=this.col,t.pos=this.pos,t}parseStart(){throw new re("Must declare a parseStart method")}};ve.END=1114112;ve.Error=re;Un.exports=ve});var Yn=$((wc,Vn)=>{"use strict";Vn.exports=e=>{let t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Ke=$((_c,Gn)=>{"use strict";Gn.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}});var qn=$((Tc,Kn)=>{"use strict";var De=Ke(),jt=class extends Date{constructor(t){super(t+"Z"),this.isFloating=!0}toISOString(){let t=`${this.getUTCFullYear()}-${De(2,this.getUTCMonth()+1)}-${De(2,this.getUTCDate())}`,i=`${De(2,this.getUTCHours())}:${De(2,this.getUTCMinutes())}:${De(2,this.getUTCSeconds())}.${De(3,this.getUTCMilliseconds())}`;return`${t}T${i}`}};Kn.exports=e=>{let t=new jt(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Qn=$((Sc,zn)=>{"use strict";var Jn=Ke(),cl=global.Date,Ut=class extends cl{constructor(t){super(t),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${Jn(2,this.getUTCMonth()+1)}-${Jn(2,this.getUTCDate())}`}};zn.exports=e=>{let t=new Ut(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Xn=$((Bc,Zn)=>{"use strict";var qe=Ke(),Wt=class extends Date{constructor(t){super(`0000-01-01T${t}Z`),this.isTime=!0}toISOString(){return`${qe(2,this.getUTCHours())}:${qe(2,this.getUTCMinutes())}:${qe(2,this.getUTCSeconds())}.${qe(3,this.getUTCMilliseconds())}`}};Zn.exports=e=>{let t=new Wt(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var Je=$((exports,module)=>{"use strict";module.exports=makeParserClass(Wn());module.exports.makeParserClass=makeParserClass;var TomlError=class e extends Error{constructor(t){super(t),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,e),this.fromTOML=!0,this.wrapped=null}};TomlError.wrap=e=>{let t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t};module.exports.TomlError=TomlError;var createDateTime=Yn(),createDateTimeFloat=qn(),createDate=Qn(),createTime=Xn(),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:" ",[CHAR_n]:`
|
|
@@ -106,7 +106,7 @@ Options:
|
|
|
106
106
|
Supported agents:
|
|
107
107
|
${e}
|
|
108
108
|
|
|
109
|
-
Docs: ${Pi}`)}function Ba(e){let t={global:!1,yes:!1,agents:[]},i;for(let r=0;r<e.length;r++){let u=e[r];switch(u){case"-g":case"--global":t.global=!0;break;case"-y":case"--yes":t.yes=!0;break;case"-a":case"--agent":{let s=e[++r];s||ie(`Missing value for ${u}`),t.agents.push(...s.split(",").map(n=>n.trim()).filter(Boolean));break}case"-h":case"--help":Mi(),process.exit(0);break;case"-v":case"--version":console.log("3.1.
|
|
109
|
+
Docs: ${Pi}`)}function Ba(e){let t={global:!1,yes:!1,agents:[]},i;for(let r=0;r<e.length;r++){let u=e[r];switch(u){case"-g":case"--global":t.global=!0;break;case"-y":case"--yes":t.yes=!0;break;case"-a":case"--agent":{let s=e[++r];s||ie(`Missing value for ${u}`),t.agents.push(...s.split(",").map(n=>n.trim()).filter(Boolean));break}case"-h":case"--help":Mi(),process.exit(0);break;case"-v":case"--version":console.log("3.1.456"),process.exit(0);break;default:u.startsWith("-")&&ie(`Unknown option: ${u} (see npx shaders --help)`),i&&ie(`Unexpected argument: ${u}`),i=u}}return{command:i,flags:t}}function ie(e){console.error(`\u2717 ${e}`),process.exit(1)}function ji(e){let t=new Set(Z());for(let i of e)t.has(i)||ie(`Unknown agent "${i}". Supported agents: ${Z().join(", ")}`);return e}async function Oa(e,t){if(e.agents.length>0)return{targets:ji(e.agents),scope:e.global?"global":"project"};let i=e.global?[]:Qt(t),r=e.global||i.length===0?"global":"project",u=r==="project"?i:await Zt();if(!(!e.yes&&process.stdout.isTTY&&process.stdin.isTTY))return u.length===0&&ie(`No coding agents detected. Pass one explicitly, e.g. npx shaders install-mcp -a cursor
|
|
110
110
|
Supported agents: ${Z().join(", ")}`),{targets:u,scope:r};let n=await Et({message:`Install the Shaders MCP server to which agents? (${r} config)`,options:Z().map(o=>({value:o,label:R[o].displayName,hint:r==="project"&&R[o].localConfigPath?R[o].localConfigPath:R[o].configPath.replace(/^\/Users\/[^/]+|^\/home\/[^/]+|^C:\\Users\\[^\\]+/,"~")})),initialValues:u,required:!0});return de(n)&&(console.log("Cancelled \u2014 nothing was changed."),process.exit(0)),{targets:n,scope:r}}async function Ra(e){let t=process.cwd(),{targets:i,scope:r}=await Oa(e,t),u=0;for(let s of i){let n=r==="project"&&!!R[s].localConfigPath,o=$i(s,ir,{type:"http",url:Sa},{local:n,cwd:t});o.success?console.log(`\u2713 ${R[s].displayName} \u2014 ${o.path}`):(u++,console.error(`\u2717 ${R[s].displayName} \u2014 ${o.error}`))}u===i.length&&process.exit(1),console.log(`
|
|
111
111
|
Done! Open your agent and connect to the "${ir}" MCP server \u2014 you'll be
|
|
112
112
|
prompted to sign in to your Shaders account (Pro) the first time it connects.
|
|
@@ -2,7 +2,7 @@ import { Bt as sin, G as mixColorsLinear, Gt as data_exports, K as mixColorsVari
|
|
|
2
2
|
import { s as TWO_PI$1 } from "./constants-DoOzbl5b.js";
|
|
3
3
|
import { r as geom_exports, t as aspectOf } from "./geom-90G-d_hc.js";
|
|
4
4
|
import { t as animatedTime } from "./porters-DUtQounc.js";
|
|
5
|
-
import {
|
|
5
|
+
import { f as mxNoiseFloat3, m as noise_exports } from "./noise-DX5Y_I--.js";
|
|
6
6
|
import { a as transformColor, c as transformPosition, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B-zNWNdd.js";
|
|
7
7
|
var TWO_PI = TWO_PI$1;
|
|
8
8
|
const auroraCurtain = src_default.fn([
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn as vec4f, f as ZERO, h as call, rn as vec2f, rt as src_default, un as f32 } from "./edges-CD7gCAto.js";
|
|
2
|
-
import {
|
|
2
|
+
import { m as noise_exports, s as hash12 } from "./noise-DX5Y_I--.js";
|
|
3
3
|
import { c as reveal_exports, n as applyReveal, r as cellGrid, s as revealMask } from "./reveal-DhktaT1C.js";
|
|
4
4
|
import { i as transformBoolean } from "./transformations-B-zNWNdd.js";
|
|
5
5
|
const blockDissolveMask = src_default.fn([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h as call, rn as vec2f, rt as src_default, un as f32 } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { i as fields_exports, o as timeAxisDomain, t as aspectScaledDomain } from "./fields-CC0756V2.js";
|
|
3
3
|
import { t as animatedTime } from "./porters-DUtQounc.js";
|
|
4
|
-
import {
|
|
4
|
+
import { m as noise_exports, x as value13 } from "./noise-DX5Y_I--.js";
|
|
5
5
|
import { n as toneAndColorExpr } from "./noiseColor-DYhX5Js1.js";
|
|
6
6
|
import { i as noiseToneProps, r as noiseSpeedProp, t as noiseColorProps } from "./noiseColor-DRDY44sf.js";
|
|
7
7
|
const blockNoiseField = src_default.fn([
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as call, rn as vec2f, rt as src_default, un as f32 } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { a as pixelGridDomain, i as fields_exports } from "./fields-CC0756V2.js";
|
|
3
|
-
import {
|
|
3
|
+
import { m as noise_exports, t as blue12 } from "./noise-DX5Y_I--.js";
|
|
4
4
|
import { n as toneAndColorExpr } from "./noiseColor-DYhX5Js1.js";
|
|
5
5
|
import { i as noiseToneProps, t as noiseColorProps } from "./noiseColor-DRDY44sf.js";
|
|
6
6
|
const blueNoiseField = src_default.fn([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { At as max, Bt as sin, Dt as floor, G as mixColorsLinear, Gt as data_exports, Ht as sqrt, K as mixColorsVariants, Kt as atomic, St as cos, Tt as exp, Yt as textureStorage2d, an as vec2u, at as std_exports, cn as vec4f, dn as i32, en as struct, f as ZERO, fn as u32, gt as select, ht as atomicStore, kt as length, lt as textureStore, mt as atomicLoad, on as vec3f, pt as atomicAdd, qt as arrayOf, rn as vec2f, rt as src_default, un as f32, wt as dot, xt as clamp } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { o as TAU$1 } from "./constants-DoOzbl5b.js";
|
|
3
3
|
import { _ as readAgentFrame, b as worldSplatWindow, f as SIZE_REF_RES, g as makeCpuValueGetter, m as energyCoverageAlpha, p as createAgentSystem, u as FIXED_POINT_GAINS, v as resolveRenderRes } from "./porters-DUtQounc.js";
|
|
4
|
-
import {
|
|
4
|
+
import { m as noise_exports, o as hash11, u as hash33 } from "./noise-DX5Y_I--.js";
|
|
5
5
|
import { a as makeAgentTexelWeightFn, l as resolveAgentShape, s as orientedShapeOptions, t as AGENT_SHAPES } from "./agents-C_kohsYu.js";
|
|
6
6
|
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B-zNWNdd.js";
|
|
7
7
|
var MAX_AGENTS = 4096;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { At as max, Bt as sin, Gt as data_exports, It as reflect, Mt as mix, Nt as normalize, Pt as pow, St as cos, Vt as smoothstep, at as std_exports, cn as vec4f, gt as select, h as call, kt as length, on as vec3f, qt as arrayOf, rn as vec2f, rt as src_default, un as f32, wt as dot, x as vec4, xt as clamp, y as floatE } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { t as DEG_TO_RAD$1 } from "./constants-DoOzbl5b.js";
|
|
3
3
|
import { t as animatedTime } from "./porters-DUtQounc.js";
|
|
4
|
-
import {
|
|
4
|
+
import { d as mxNoiseFloat2, m as noise_exports } from "./noise-DX5Y_I--.js";
|
|
5
5
|
import { C as sdf_exports } from "./device-B0ZwBfOg.js";
|
|
6
6
|
import { n as lighting_exports } from "./lighting-D3jc6qOc.js";
|
|
7
7
|
import { i as shapeEffectBoundingBoxDeclaration, n as sdf3d_exports } from "./sdf3d-CP87OlsQ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { At as max, Bt as sin, Dt as floor, Gt as data_exports, It as reflect, Mt as mix, Nt as normalize, Ot as fract, Pt as pow, St as cos, Vt as smoothstep, _t as abs, at as std_exports, cn as vec4f, gt as select, h as call, jt as min, kt as length, on as vec3f, rn as vec2f, rt as src_default, un as f32, wt as dot, x as vec4, xt as clamp, y as floatE } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { i as PI$1, t as DEG_TO_RAD$1 } from "./constants-DoOzbl5b.js";
|
|
3
|
-
import {
|
|
3
|
+
import { d as mxNoiseFloat2, m as noise_exports } from "./noise-DX5Y_I--.js";
|
|
4
4
|
import { C as sdf_exports } from "./device-B0ZwBfOg.js";
|
|
5
5
|
import { n as lighting_exports } from "./lighting-D3jc6qOc.js";
|
|
6
6
|
import { i as shapeEffectBoundingBoxDeclaration, n as sdf3d_exports } from "./sdf3d-CP87OlsQ.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { At as max,
|
|
1
|
+
import { At as max, Dt as floor, Gt as data_exports, Ht as sqrt, I as unpremultiplyAlpha, Mt as mix, Ot as fract, Ut as step, Vt as smoothstep, _t as abs, at as std_exports, cn as vec4f, f as ZERO, h as call, on as vec3f, rn as vec2f, rt as src_default, un as f32, wt as dot, x as vec4, xt as clamp, y as floatE } from "./edges-CD7gCAto.js";
|
|
2
|
+
import { m as noise_exports, s as hash12 } from "./noise-DX5Y_I--.js";
|
|
2
3
|
import { a as transformColor } from "./transformations-B-zNWNdd.js";
|
|
3
4
|
var SIN_045 = Math.sin(.785);
|
|
4
5
|
var COS_045 = Math.cos(.785);
|
|
@@ -6,7 +7,7 @@ var SIN_N45 = Math.sin(-.785);
|
|
|
6
7
|
var COS_N45 = Math.cos(-.785);
|
|
7
8
|
var chalkHash21 = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p) => {
|
|
8
9
|
"use gpu";
|
|
9
|
-
return
|
|
10
|
+
return hash12(p);
|
|
10
11
|
}), {
|
|
11
12
|
v: 1,
|
|
12
13
|
name: void 0,
|
|
@@ -19,46 +20,14 @@ var chalkHash21 = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalTh
|
|
|
19
20
|
6,
|
|
20
21
|
[
|
|
21
22
|
7,
|
|
22
|
-
"
|
|
23
|
-
"
|
|
23
|
+
"noise",
|
|
24
|
+
"hash12"
|
|
24
25
|
],
|
|
25
|
-
[
|
|
26
|
-
1,
|
|
27
|
-
[
|
|
28
|
-
6,
|
|
29
|
-
[
|
|
30
|
-
7,
|
|
31
|
-
"std",
|
|
32
|
-
"sin"
|
|
33
|
-
],
|
|
34
|
-
[[
|
|
35
|
-
6,
|
|
36
|
-
[
|
|
37
|
-
7,
|
|
38
|
-
"std",
|
|
39
|
-
"dot"
|
|
40
|
-
],
|
|
41
|
-
["p", [
|
|
42
|
-
6,
|
|
43
|
-
[
|
|
44
|
-
7,
|
|
45
|
-
"d",
|
|
46
|
-
"vec2f"
|
|
47
|
-
],
|
|
48
|
-
[[5, "12.9898"], [5, "78.233"]]
|
|
49
|
-
]]
|
|
50
|
-
]]
|
|
51
|
-
],
|
|
52
|
-
"*",
|
|
53
|
-
[5, "43758.5453"]
|
|
54
|
-
]]
|
|
26
|
+
["p"]
|
|
55
27
|
]]]],
|
|
56
|
-
"externalNames": ["
|
|
28
|
+
"externalNames": ["noise"]
|
|
57
29
|
},
|
|
58
|
-
externals: () => ({
|
|
59
|
-
std: std_exports,
|
|
60
|
-
d: data_exports
|
|
61
|
-
})
|
|
30
|
+
externals: () => ({ noise: noise_exports })
|
|
62
31
|
}) && $.f)({}));
|
|
63
32
|
var chalkVnoise = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((p) => {
|
|
64
33
|
"use gpu";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { At as max, Bt as sin, Gt as data_exports, Ht as sqrt, It as reflect, Mt as mix, N as tonemap_exports, Nt as normalize, St as cos, Tt as exp, Vt as smoothstep, _t as abs, at as std_exports, cn as vec4f, gt as select, h as call, j as neutral, jt as min, kt as length, on as vec3f, rn as vec2f, rt as src_default, un as f32, wt as dot, x as vec4, xt as clamp, y as floatE } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { t as DEG_TO_RAD$1 } from "./constants-DoOzbl5b.js";
|
|
3
3
|
import { t as animatedTime } from "./porters-DUtQounc.js";
|
|
4
|
-
import {
|
|
4
|
+
import { g as perlin12d, m as noise_exports } from "./noise-DX5Y_I--.js";
|
|
5
5
|
import { C as sdf_exports } from "./device-B0ZwBfOg.js";
|
|
6
6
|
import { n as lighting_exports } from "./lighting-D3jc6qOc.js";
|
|
7
7
|
import { i as shapeEffectBoundingBoxDeclaration, n as sdf3d_exports } from "./sdf3d-CP87OlsQ.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { At as max, Bt as sin, Dt as floor, F as blend_exports, Gt as data_exports, Ht as sqrt, It as reflect, Lt as refract, Mt as mix, Nt as normalize, Ot as fract, Pt as pow, St as cos, Vt as smoothstep, _t as abs, at as std_exports, cn as vec4f, en as struct, f as ZERO, gt as select, h as call, jt as min, on as vec3f, rn as vec2f, rt as src_default, un as f32, wt as dot, x as vec4, xt as clamp, y as floatE, yt as atan2 } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { i as PI$1, s as TWO_PI$1, t as DEG_TO_RAD$1 } from "./constants-DoOzbl5b.js";
|
|
3
|
-
import {
|
|
3
|
+
import { m as noise_exports, p as mxWorleyNoiseFloat2Pub } from "./noise-DX5Y_I--.js";
|
|
4
4
|
import { C as sdf_exports } from "./device-B0ZwBfOg.js";
|
|
5
5
|
import { n as lighting_exports } from "./lighting-D3jc6qOc.js";
|
|
6
6
|
import { i as shapeEffectBoundingBoxDeclaration, n as sdf3d_exports } from "./sdf3d-CP87OlsQ.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { at as std_exports, h as call, kt as length, rn as vec2f, rt as src_default, un as f32 } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { i as fields_exports, t as aspectScaledDomain } from "./fields-CC0756V2.js";
|
|
3
3
|
import { t as animatedTime } from "./porters-DUtQounc.js";
|
|
4
|
-
import {
|
|
4
|
+
import { m as noise_exports, r as curl22z } from "./noise-DX5Y_I--.js";
|
|
5
5
|
import { n as toneAndColorExpr } from "./noiseColor-DYhX5Js1.js";
|
|
6
6
|
import { i as noiseToneProps, r as noiseSpeedProp, t as noiseColorProps } from "./noiseColor-DRDY44sf.js";
|
|
7
7
|
const curlNoiseField = src_default.fn([
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { At as max, Bt as sin, Dt as floor, Gt as data_exports, I as unpremultiplyAlpha, Jt as texture2d, Mt as mix,
|
|
1
|
+
import { At as max, Bt as sin, Dt as floor, Gt as data_exports, I as unpremultiplyAlpha, Jt as texture2d, Mt as mix, St as cos, Vt as smoothstep, Yt as textureStorage2d, an as vec2u, at as std_exports, b as mixExpr, cn as vec4f, en as struct, f as ZERO, fn as u32, gt as select, h as call, lt as textureStore, on as vec3f, ot as textureDimensions, rt as src_default, st as textureLoad, un as f32, xt as clamp } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { D as createFeedbackTrailSim } from "./porters-DUtQounc.js";
|
|
3
|
+
import { m as noise_exports, o as hash11 } from "./noise-DX5Y_I--.js";
|
|
3
4
|
import { M as createGuardedCompute } from "./device-B0ZwBfOg.js";
|
|
4
5
|
var STATE_RES = 768;
|
|
5
6
|
var STATE_FORMAT = "rgba16float";
|
|
@@ -21,7 +22,7 @@ var moshLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))
|
|
|
21
22
|
}), "moshLayout");
|
|
22
23
|
const moshHash = src_default.fn([f32], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((x) => {
|
|
23
24
|
"use gpu";
|
|
24
|
-
return
|
|
25
|
+
return hash11(x);
|
|
25
26
|
}), {
|
|
26
27
|
v: 1,
|
|
27
28
|
name: void 0,
|
|
@@ -34,27 +35,14 @@ const moshHash = src_default.fn([f32], f32)(/* @__PURE__ */ (($) => (globalThis.
|
|
|
34
35
|
6,
|
|
35
36
|
[
|
|
36
37
|
7,
|
|
37
|
-
"
|
|
38
|
-
"
|
|
38
|
+
"noise",
|
|
39
|
+
"hash11"
|
|
39
40
|
],
|
|
40
|
-
[
|
|
41
|
-
1,
|
|
42
|
-
[
|
|
43
|
-
6,
|
|
44
|
-
[
|
|
45
|
-
7,
|
|
46
|
-
"std",
|
|
47
|
-
"sin"
|
|
48
|
-
],
|
|
49
|
-
["x"]
|
|
50
|
-
],
|
|
51
|
-
"*",
|
|
52
|
-
[5, "43758.5453123"]
|
|
53
|
-
]]
|
|
41
|
+
["x"]
|
|
54
42
|
]]]],
|
|
55
|
-
"externalNames": ["
|
|
43
|
+
"externalNames": ["noise"]
|
|
56
44
|
},
|
|
57
|
-
externals: () => ({
|
|
45
|
+
externals: () => ({ noise: noise_exports })
|
|
58
46
|
}) && $.f)({}));
|
|
59
47
|
const moshKernel = src_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
60
48
|
"use gpu";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gt as data_exports, h as call, rn as vec2f, rt as src_default, t as applyEdgeHandlingExpr, un as f32 } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { x as defineRttFilter } from "./porters-DUtQounc.js";
|
|
3
|
+
import { l as hash22, m as noise_exports } from "./noise-DX5Y_I--.js";
|
|
3
4
|
import { s as transformEdges } from "./transformations-B-zNWNdd.js";
|
|
4
5
|
const diffuseBlurUV = src_default.fn([
|
|
5
6
|
vec2f,
|
|
@@ -7,8 +8,7 @@ const diffuseBlurUV = src_default.fn([
|
|
|
7
8
|
vec2f
|
|
8
9
|
], vec2f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((uv, intensity, viewport) => {
|
|
9
10
|
"use gpu";
|
|
10
|
-
const
|
|
11
|
-
const offset = fract(vec2f(__tsover_mul(sinVal, 43758.5453), __tsover_mul(sinVal, 28461.7231))).mul(2).sub(vec2f(1, 1)).mul(intensity).div(viewport);
|
|
11
|
+
const offset = hash22(uv.mul(1e3)).mul(2).sub(vec2f(1, 1)).mul(intensity).div(viewport);
|
|
12
12
|
return uv.add(offset);
|
|
13
13
|
}), {
|
|
14
14
|
v: 1,
|
|
@@ -42,35 +42,6 @@ const diffuseBlurUV = src_default.fn([
|
|
|
42
42
|
[[5, "1000"]]
|
|
43
43
|
]
|
|
44
44
|
],
|
|
45
|
-
[
|
|
46
|
-
13,
|
|
47
|
-
"sinVal",
|
|
48
|
-
[
|
|
49
|
-
6,
|
|
50
|
-
[
|
|
51
|
-
7,
|
|
52
|
-
"std",
|
|
53
|
-
"sin"
|
|
54
|
-
],
|
|
55
|
-
[[
|
|
56
|
-
6,
|
|
57
|
-
[
|
|
58
|
-
7,
|
|
59
|
-
"std",
|
|
60
|
-
"dot"
|
|
61
|
-
],
|
|
62
|
-
["seed", [
|
|
63
|
-
6,
|
|
64
|
-
[
|
|
65
|
-
7,
|
|
66
|
-
"d",
|
|
67
|
-
"vec2f"
|
|
68
|
-
],
|
|
69
|
-
[[5, "25.9796"], [5, "156.466"]]
|
|
70
|
-
]]
|
|
71
|
-
]]
|
|
72
|
-
]
|
|
73
|
-
],
|
|
74
45
|
[
|
|
75
46
|
13,
|
|
76
47
|
"randVec",
|
|
@@ -78,28 +49,10 @@ const diffuseBlurUV = src_default.fn([
|
|
|
78
49
|
6,
|
|
79
50
|
[
|
|
80
51
|
7,
|
|
81
|
-
"
|
|
82
|
-
"
|
|
52
|
+
"noise",
|
|
53
|
+
"hash22"
|
|
83
54
|
],
|
|
84
|
-
[
|
|
85
|
-
6,
|
|
86
|
-
[
|
|
87
|
-
7,
|
|
88
|
-
"d",
|
|
89
|
-
"vec2f"
|
|
90
|
-
],
|
|
91
|
-
[[
|
|
92
|
-
1,
|
|
93
|
-
"sinVal",
|
|
94
|
-
"*",
|
|
95
|
-
[5, "43758.5453"]
|
|
96
|
-
], [
|
|
97
|
-
1,
|
|
98
|
-
"sinVal",
|
|
99
|
-
"*",
|
|
100
|
-
[5, "28461.7231"]
|
|
101
|
-
]]
|
|
102
|
-
]]
|
|
55
|
+
["seed"]
|
|
103
56
|
]
|
|
104
57
|
],
|
|
105
58
|
[
|
|
@@ -157,10 +110,10 @@ const diffuseBlurUV = src_default.fn([
|
|
|
157
110
|
["offset"]
|
|
158
111
|
]]
|
|
159
112
|
]],
|
|
160
|
-
"externalNames": ["
|
|
113
|
+
"externalNames": ["noise", "d"]
|
|
161
114
|
},
|
|
162
115
|
externals: () => ({
|
|
163
|
-
|
|
116
|
+
noise: noise_exports,
|
|
164
117
|
d: data_exports
|
|
165
118
|
})
|
|
166
119
|
}) && $.f)({}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dt as floor, Gt as data_exports, Mt as mix, Ot as fract, Ut as step, at as std_exports, cn as vec4f, dn as i32, gt as select, h as call, jt as min, on as vec3f, p as arrayExpr, qt as arrayOf, rn as vec2f, rt as src_default, un as f32, wt as dot, y as floatE } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { x as defineRttFilter } from "./porters-DUtQounc.js";
|
|
3
|
+
import { m as noise_exports, s as hash12 } from "./noise-DX5Y_I--.js";
|
|
3
4
|
import { a as transformColor } from "./transformations-B-zNWNdd.js";
|
|
4
5
|
var transformPattern = (value) => {
|
|
5
6
|
return {
|
|
@@ -1195,7 +1196,7 @@ const ditherBlueNoise = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (gl
|
|
|
1195
1196
|
}) && $.f)({}));
|
|
1196
1197
|
const ditherWhiteNoise = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((coord) => {
|
|
1197
1198
|
"use gpu";
|
|
1198
|
-
return
|
|
1199
|
+
return hash12(coord);
|
|
1199
1200
|
}), {
|
|
1200
1201
|
v: 1,
|
|
1201
1202
|
name: void 0,
|
|
@@ -1208,46 +1209,14 @@ const ditherWhiteNoise = src_default.fn([vec2f], f32)(/* @__PURE__ */ (($) => (g
|
|
|
1208
1209
|
6,
|
|
1209
1210
|
[
|
|
1210
1211
|
7,
|
|
1211
|
-
"
|
|
1212
|
-
"
|
|
1212
|
+
"noise",
|
|
1213
|
+
"hash12"
|
|
1213
1214
|
],
|
|
1214
|
-
[
|
|
1215
|
-
1,
|
|
1216
|
-
[
|
|
1217
|
-
6,
|
|
1218
|
-
[
|
|
1219
|
-
7,
|
|
1220
|
-
"std",
|
|
1221
|
-
"sin"
|
|
1222
|
-
],
|
|
1223
|
-
[[
|
|
1224
|
-
6,
|
|
1225
|
-
[
|
|
1226
|
-
7,
|
|
1227
|
-
"std",
|
|
1228
|
-
"dot"
|
|
1229
|
-
],
|
|
1230
|
-
["coord", [
|
|
1231
|
-
6,
|
|
1232
|
-
[
|
|
1233
|
-
7,
|
|
1234
|
-
"d",
|
|
1235
|
-
"vec2f"
|
|
1236
|
-
],
|
|
1237
|
-
[[5, "12.9898"], [5, "78.233"]]
|
|
1238
|
-
]]
|
|
1239
|
-
]]
|
|
1240
|
-
],
|
|
1241
|
-
"*",
|
|
1242
|
-
[5, "43758.5453"]
|
|
1243
|
-
]]
|
|
1215
|
+
["coord"]
|
|
1244
1216
|
]]]],
|
|
1245
|
-
"externalNames": ["
|
|
1217
|
+
"externalNames": ["noise"]
|
|
1246
1218
|
},
|
|
1247
|
-
externals: () => ({
|
|
1248
|
-
std: std_exports,
|
|
1249
|
-
d: data_exports
|
|
1250
|
-
})
|
|
1219
|
+
externals: () => ({ noise: noise_exports })
|
|
1251
1220
|
}) && $.f)({}));
|
|
1252
1221
|
const ditherOrderedResult = src_default.fn([
|
|
1253
1222
|
f32,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { At as max, Bt as sin, Gt as data_exports, Mt as mix, St as cos, Vt as smoothstep, at as std_exports, cn as vec4f, h as call, kt as length, on as vec3f, rn as vec2f, rt as src_default, un as f32, wt as dot, x as vec4, xt as clamp, y as floatE, yt as atan2 } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { o as TAU$1, t as DEG_TO_RAD$1 } from "./constants-DoOzbl5b.js";
|
|
3
3
|
import { x as defineRttFilter } from "./porters-DUtQounc.js";
|
|
4
|
-
import {
|
|
4
|
+
import { d as mxNoiseFloat2, m as noise_exports } from "./noise-DX5Y_I--.js";
|
|
5
5
|
import { a as transformColor, c as transformPosition, r as transformAngle } from "./transformations-B-zNWNdd.js";
|
|
6
6
|
var TAU = TAU$1;
|
|
7
7
|
var DEG_TO_RAD = DEG_TO_RAD$1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as call, rn as vec2f, rt as src_default, un as f32 } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { i as fields_exports, t as aspectScaledDomain } from "./fields-CC0756V2.js";
|
|
3
|
-
import { i as erosion12,
|
|
3
|
+
import { i as erosion12, m as noise_exports } from "./noise-DX5Y_I--.js";
|
|
4
4
|
import { n as toneAndColorExpr } from "./noiseColor-DYhX5Js1.js";
|
|
5
5
|
import { i as noiseToneProps, t as noiseColorProps } from "./noiseColor-DRDY44sf.js";
|
|
6
6
|
const erosionNoiseField = src_default.fn([
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gt as data_exports, Pt as pow, at as std_exports, cn as vec4f, on as vec3f, rn as vec2f, rt as src_default, un as f32, wt as dot, xt as clamp } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { S as definePointwiseFilter } from "./porters-DUtQounc.js";
|
|
3
|
+
import { m as noise_exports, s as hash12 } from "./noise-DX5Y_I--.js";
|
|
3
4
|
const filmGrainColor = src_default.fn([
|
|
4
5
|
vec4f,
|
|
5
6
|
vec2f,
|
|
@@ -9,10 +10,8 @@ const filmGrainColor = src_default.fn([
|
|
|
9
10
|
f32
|
|
10
11
|
], vec4f)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((color, uv, viewport, strength, bias, animTime) => {
|
|
11
12
|
"use gpu";
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const noise = fract(__tsover_mul(sin(noiseInput), 43758.5453));
|
|
15
|
-
const grain = __tsover_sub(__tsover_mul(noise, 2), 1);
|
|
13
|
+
const noiseVal = hash12(uv.mul(viewport).add(vec2f(animTime, __tsover_mul(animTime, 1.6180339))));
|
|
14
|
+
const grain = __tsover_sub(__tsover_mul(noiseVal, 2), 1);
|
|
16
15
|
const brightness = clamp(dot(color.xyz, vec3f(.2126, .7152, .0722)), 0, 1);
|
|
17
16
|
const darkness = __tsover_sub(1, brightness);
|
|
18
17
|
const darkFactor = pow(__tsover_add(darkness, 1e-6), bias);
|
|
@@ -64,53 +63,35 @@ const filmGrainColor = src_default.fn([
|
|
|
64
63
|
],
|
|
65
64
|
[
|
|
66
65
|
13,
|
|
67
|
-
"
|
|
66
|
+
"noiseVal",
|
|
68
67
|
[
|
|
69
|
-
|
|
68
|
+
6,
|
|
70
69
|
[
|
|
70
|
+
7,
|
|
71
|
+
"noise",
|
|
72
|
+
"hash12"
|
|
73
|
+
],
|
|
74
|
+
[[
|
|
71
75
|
6,
|
|
72
76
|
[
|
|
73
77
|
7,
|
|
74
|
-
"
|
|
75
|
-
"
|
|
78
|
+
"pixelCoord",
|
|
79
|
+
"add"
|
|
76
80
|
],
|
|
77
|
-
[
|
|
81
|
+
[[
|
|
78
82
|
6,
|
|
79
83
|
[
|
|
80
84
|
7,
|
|
81
85
|
"d",
|
|
82
86
|
"vec2f"
|
|
83
87
|
],
|
|
84
|
-
[
|
|
88
|
+
["animTime", [
|
|
89
|
+
1,
|
|
90
|
+
"animTime",
|
|
91
|
+
"*",
|
|
92
|
+
[5, "1.6180339"]
|
|
93
|
+
]]
|
|
85
94
|
]]
|
|
86
|
-
],
|
|
87
|
-
"+",
|
|
88
|
-
"animTime"
|
|
89
|
-
]
|
|
90
|
-
],
|
|
91
|
-
[
|
|
92
|
-
13,
|
|
93
|
-
"noise",
|
|
94
|
-
[
|
|
95
|
-
6,
|
|
96
|
-
[
|
|
97
|
-
7,
|
|
98
|
-
"std",
|
|
99
|
-
"fract"
|
|
100
|
-
],
|
|
101
|
-
[[
|
|
102
|
-
1,
|
|
103
|
-
[
|
|
104
|
-
6,
|
|
105
|
-
[
|
|
106
|
-
7,
|
|
107
|
-
"std",
|
|
108
|
-
"sin"
|
|
109
|
-
],
|
|
110
|
-
["noiseInput"]
|
|
111
|
-
],
|
|
112
|
-
"*",
|
|
113
|
-
[5, "43758.5453"]
|
|
114
95
|
]]
|
|
115
96
|
]
|
|
116
97
|
],
|
|
@@ -121,7 +102,7 @@ const filmGrainColor = src_default.fn([
|
|
|
121
102
|
1,
|
|
122
103
|
[
|
|
123
104
|
1,
|
|
124
|
-
"
|
|
105
|
+
"noiseVal",
|
|
125
106
|
"*",
|
|
126
107
|
[5, "2"]
|
|
127
108
|
],
|
|
@@ -249,11 +230,16 @@ const filmGrainColor = src_default.fn([
|
|
|
249
230
|
]]
|
|
250
231
|
]]
|
|
251
232
|
]],
|
|
252
|
-
"externalNames": [
|
|
233
|
+
"externalNames": [
|
|
234
|
+
"noise",
|
|
235
|
+
"d",
|
|
236
|
+
"std"
|
|
237
|
+
]
|
|
253
238
|
},
|
|
254
239
|
externals: () => ({
|
|
255
|
-
|
|
256
|
-
d: data_exports
|
|
240
|
+
noise: noise_exports,
|
|
241
|
+
d: data_exports,
|
|
242
|
+
std: std_exports
|
|
257
243
|
})
|
|
258
244
|
}) && $.f)({}));
|
|
259
245
|
const componentDefinition = definePointwiseFilter({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { At as max, Bt as sin, Dt as floor, Gt as data_exports, Kt as atomic, Mt as mix, St as cos, Yt as textureStorage2d, an as vec2u, at as std_exports, cn as vec4f, en as struct, f as ZERO, fn as u32, h as call, ht as atomicStore, lt as textureStore, mt as atomicLoad, on as vec3f, pt as atomicAdd, qt as arrayOf, rn as vec2f, rt as src_default, un as f32, xt as clamp } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { i as PI, o as TAU$1, t as DEG_TO_RAD$1 } from "./constants-DoOzbl5b.js";
|
|
3
3
|
import { _ as readAgentFrame, b as worldSplatWindow, f as SIZE_REF_RES, g as makeCpuValueGetter, m as energyCoverageAlpha, p as createAgentSystem, u as FIXED_POINT_GAINS, v as resolveRenderRes } from "./porters-DUtQounc.js";
|
|
4
|
-
import {
|
|
4
|
+
import { l as hash22, m as noise_exports, o as hash11, u as hash33 } from "./noise-DX5Y_I--.js";
|
|
5
5
|
import { a as makeAgentTexelWeightFn, c as pointShapeOptions, i as cursorMagnet, l as resolveAgentShape, n as agents_exports, o as makeAgentWeightFn, t as AGENT_SHAPES } from "./agents-C_kohsYu.js";
|
|
6
6
|
import { a as transformColor } from "./transformations-B-zNWNdd.js";
|
|
7
7
|
var MAX_MOTES = 8192;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { At as max, Bt as sin, Gt as data_exports, I as unpremultiplyAlpha, St as cos, at as std_exports, c as sampleRemappedExpr, f as ZERO, h as call, kt as length, n as composeEdgeRemapExpr, on as vec3f, rn as vec2f, rt as src_default, un as f32 } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { s as TWO_PI$1 } from "./constants-DoOzbl5b.js";
|
|
3
3
|
import { t as animatedTime } from "./porters-DUtQounc.js";
|
|
4
|
-
import {
|
|
4
|
+
import { f as mxNoiseFloat3, m as noise_exports } from "./noise-DX5Y_I--.js";
|
|
5
5
|
import { s as transformEdges } from "./transformations-B-zNWNdd.js";
|
|
6
6
|
var TWO_PI = TWO_PI$1;
|
|
7
7
|
const flowFieldUV = src_default.fn([
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { At as max, B as convertP3ToMixSpaceCPU, Bt as sin, G as mixColorsLinear, Gt as data_exports, J as mixPreconvertedLinear, Mt as mix, Pt as pow, St as cos, Vt as smoothstep, Y as mixPreconvertedVariants, _t as abs, at as std_exports, cn as vec4f, h as call, m as asLocal, on as vec3f, q as mixPreconvertedInSpace, rn as vec2f, rt as src_default, un as f32, xt as clamp } from "./edges-CD7gCAto.js";
|
|
2
2
|
import { r as geom_exports } from "./geom-90G-d_hc.js";
|
|
3
3
|
import { t as animatedTime } from "./porters-DUtQounc.js";
|
|
4
|
-
import {
|
|
4
|
+
import { f as mxNoiseFloat3, m as noise_exports } from "./noise-DX5Y_I--.js";
|
|
5
5
|
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B-zNWNdd.js";
|
|
6
6
|
var FOUR_PI = 4 * Math.PI;
|
|
7
7
|
var { aspectOf } = geom_exports;
|