framefields 2.0.2
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/LICENCE +202 -0
- package/README.md +740 -0
- package/dist/audio/index.d.mts +5 -0
- package/dist/audio/index.mjs +14 -0
- package/dist/audio-Dvwwz8xU.d.mts +37 -0
- package/dist/audio-Dvwwz8xU.d.mts.map +1 -0
- package/dist/audio-TAvPwzLR.mjs +214 -0
- package/dist/audio-TAvPwzLR.mjs.map +1 -0
- package/dist/audio-x28ZgQBP.mjs +85 -0
- package/dist/audio-x28ZgQBP.mjs.map +1 -0
- package/dist/chunk-GMkBE123.mjs +47 -0
- package/dist/client-C74hb7fy.mjs +66 -0
- package/dist/client-C74hb7fy.mjs.map +1 -0
- package/dist/dist-1iUYuPct.mjs +1859 -0
- package/dist/dist-1iUYuPct.mjs.map +1 -0
- package/dist/dist-Bx6J0VcM.mjs +1859 -0
- package/dist/dist-Bx6J0VcM.mjs.map +1 -0
- package/dist/dist-C_hjvkdN.mjs +2220 -0
- package/dist/dist-C_hjvkdN.mjs.map +1 -0
- package/dist/dist-DKm2IyEJ.mjs +94 -0
- package/dist/dist-DKm2IyEJ.mjs.map +1 -0
- package/dist/dist-cjs-B5EVqDFp.mjs +85 -0
- package/dist/dist-cjs-B5EVqDFp.mjs.map +1 -0
- package/dist/dist-cjs-BGJkdexX.mjs +437 -0
- package/dist/dist-cjs-BGJkdexX.mjs.map +1 -0
- package/dist/dist-cjs-BKmGCgtm.mjs +9069 -0
- package/dist/dist-cjs-BKmGCgtm.mjs.map +1 -0
- package/dist/dist-cjs-BUc0_kg-.mjs +1091 -0
- package/dist/dist-cjs-BUc0_kg-.mjs.map +1 -0
- package/dist/dist-cjs-BUwe2XhR.mjs +153 -0
- package/dist/dist-cjs-BUwe2XhR.mjs.map +1 -0
- package/dist/dist-cjs-BWgoUCXJ.mjs +137 -0
- package/dist/dist-cjs-BWgoUCXJ.mjs.map +1 -0
- package/dist/dist-cjs-CmZEMtO6.mjs +6 -0
- package/dist/dist-cjs-D7kEM-Mj.mjs +181 -0
- package/dist/dist-cjs-D7kEM-Mj.mjs.map +1 -0
- package/dist/dist-cjs-DFUmy89O.mjs +48 -0
- package/dist/dist-cjs-DFUmy89O.mjs.map +1 -0
- package/dist/dist-cjs-Df7144zM.mjs +209 -0
- package/dist/dist-cjs-Df7144zM.mjs.map +1 -0
- package/dist/dist-cjs-DgxjcvBN.mjs +98 -0
- package/dist/dist-cjs-DgxjcvBN.mjs.map +1 -0
- package/dist/dist-cjs-DsMdld8l.mjs +5015 -0
- package/dist/dist-cjs-DsMdld8l.mjs.map +1 -0
- package/dist/dist-cjs-Dzs5P3K0.mjs +51 -0
- package/dist/dist-cjs-Dzs5P3K0.mjs.map +1 -0
- package/dist/dist-cjs-ECMuIF57.mjs +323 -0
- package/dist/dist-cjs-ECMuIF57.mjs.map +1 -0
- package/dist/dist-cjs-lYvO8aDo.mjs +64 -0
- package/dist/dist-cjs-lYvO8aDo.mjs.map +1 -0
- package/dist/dist-cjs-qEJrwjGk.mjs +66 -0
- package/dist/dist-cjs-qEJrwjGk.mjs.map +1 -0
- package/dist/dist-cjs-x5cwlqA5.mjs +43 -0
- package/dist/dist-cjs-x5cwlqA5.mjs.map +1 -0
- package/dist/dist-gjHmorxL.mjs +27479 -0
- package/dist/dist-gjHmorxL.mjs.map +1 -0
- package/dist/effects/index.d.mts +5 -0
- package/dist/effects/index.mjs +35 -0
- package/dist/effects-CHWORCYd.mjs +811 -0
- package/dist/effects-CHWORCYd.mjs.map +1 -0
- package/dist/event-streams-D-APZ7Ke.mjs +204 -0
- package/dist/event-streams-D-APZ7Ke.mjs.map +1 -0
- package/dist/fonts/index.d.mts +2 -0
- package/dist/fonts/index.mjs +3 -0
- package/dist/fonts-DrGTBJJk.mjs +188 -0
- package/dist/fonts-DrGTBJJk.mjs.map +1 -0
- package/dist/index-B0BNPEoH.d.mts +2117 -0
- package/dist/index-B0BNPEoH.d.mts.map +1 -0
- package/dist/index-BMVVmc4G.d.mts +72 -0
- package/dist/index-BMVVmc4G.d.mts.map +1 -0
- package/dist/index-D1ZsMpke.d.mts +264 -0
- package/dist/index-D1ZsMpke.d.mts.map +1 -0
- package/dist/index-D2jDC7O5.d.mts +3643 -0
- package/dist/index-D2jDC7O5.d.mts.map +1 -0
- package/dist/index-D2wJqSl5.d.mts +114 -0
- package/dist/index-D2wJqSl5.d.mts.map +1 -0
- package/dist/index-DKFGNyMB.d.mts +309 -0
- package/dist/index-DKFGNyMB.d.mts.map +1 -0
- package/dist/index-DiSKzDGR.d.mts +65 -0
- package/dist/index-DiSKzDGR.d.mts.map +1 -0
- package/dist/index.d.mts +4425 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2623 -0
- package/dist/index.mjs.map +1 -0
- package/dist/package-C58KmGKw.mjs +6 -0
- package/dist/package-C58KmGKw.mjs.map +1 -0
- package/dist/preview/index.d.mts +90 -0
- package/dist/preview/index.d.mts.map +1 -0
- package/dist/preview/index.mjs +15 -0
- package/dist/preview-engine/audio.mjs +1 -0
- package/dist/preview-engine/child_process-AIL2NBWS.mjs +1 -0
- package/dist/preview-engine/chunk-24P6DAB3.mjs +1 -0
- package/dist/preview-engine/chunk-37EFVZWT.mjs +1 -0
- package/dist/preview-engine/chunk-3O5OKR6D.mjs +223 -0
- package/dist/preview-engine/chunk-47VT677S.mjs +8 -0
- package/dist/preview-engine/chunk-4BEJJKEU.mjs +315 -0
- package/dist/preview-engine/chunk-4GEWSUX5.mjs +1 -0
- package/dist/preview-engine/chunk-55CCFPUX.mjs +237 -0
- package/dist/preview-engine/chunk-5JD65JSJ.mjs +110 -0
- package/dist/preview-engine/chunk-5UP7FSGT.mjs +294 -0
- package/dist/preview-engine/chunk-5XDHHOF2.mjs +367 -0
- package/dist/preview-engine/chunk-6YJP57MZ.mjs +729 -0
- package/dist/preview-engine/chunk-6ZOXGAYA.mjs +112 -0
- package/dist/preview-engine/chunk-AOLAHYVV.mjs +529 -0
- package/dist/preview-engine/chunk-B6PLCMBM.mjs +1 -0
- package/dist/preview-engine/chunk-BJKH76OM.mjs +264 -0
- package/dist/preview-engine/chunk-BUIQ5TUH.mjs +104 -0
- package/dist/preview-engine/chunk-BVF64D6H.mjs +1 -0
- package/dist/preview-engine/chunk-CA5N7JRZ.mjs +138 -0
- package/dist/preview-engine/chunk-CNSHAFEA.mjs +1 -0
- package/dist/preview-engine/chunk-CURR5X7D.mjs +1 -0
- package/dist/preview-engine/chunk-CVGM2U4J.mjs +47 -0
- package/dist/preview-engine/chunk-CYY366IE.mjs +1 -0
- package/dist/preview-engine/chunk-D5PHI6ET.mjs +109 -0
- package/dist/preview-engine/chunk-D7MZHP2Y.mjs +275 -0
- package/dist/preview-engine/chunk-DPPH3NK2.mjs +182 -0
- package/dist/preview-engine/chunk-DPST2XLC.mjs +418 -0
- package/dist/preview-engine/chunk-DRLEOHN5.mjs +1 -0
- package/dist/preview-engine/chunk-EDIZNO3P.mjs +1 -0
- package/dist/preview-engine/chunk-EHIIT4ZR.mjs +52 -0
- package/dist/preview-engine/chunk-FKZ4XXPE.mjs +1 -0
- package/dist/preview-engine/chunk-G3HW4VER.mjs +60 -0
- package/dist/preview-engine/chunk-G76HSKOS.mjs +184 -0
- package/dist/preview-engine/chunk-GYG2IIBR.mjs +1 -0
- package/dist/preview-engine/chunk-H2F5NVQ6.mjs +63 -0
- package/dist/preview-engine/chunk-H5BPCY7N.mjs +188 -0
- package/dist/preview-engine/chunk-HAXK42HG.mjs +997 -0
- package/dist/preview-engine/chunk-HXMDPMLB.mjs +1 -0
- package/dist/preview-engine/chunk-HYBAPT6I.mjs +1 -0
- package/dist/preview-engine/chunk-I4FH6HYU.mjs +73 -0
- package/dist/preview-engine/chunk-IYVN2QEL.mjs +1 -0
- package/dist/preview-engine/chunk-JPXQPP6J.mjs +1 -0
- package/dist/preview-engine/chunk-JWNHTRED.mjs +164 -0
- package/dist/preview-engine/chunk-KZOLCZIV.mjs +103 -0
- package/dist/preview-engine/chunk-L62MRHGZ.mjs +89 -0
- package/dist/preview-engine/chunk-LEEZXHQO.mjs +117 -0
- package/dist/preview-engine/chunk-LKYN3BM2.mjs +1 -0
- package/dist/preview-engine/chunk-LP3EP33S.mjs +610 -0
- package/dist/preview-engine/chunk-M2GRYRLM.mjs +111 -0
- package/dist/preview-engine/chunk-MC7TZZLD.mjs +134 -0
- package/dist/preview-engine/chunk-MT2DZQHO.mjs +1 -0
- package/dist/preview-engine/chunk-MTJHQATU.mjs +1 -0
- package/dist/preview-engine/chunk-N4LHIPHZ.mjs +340 -0
- package/dist/preview-engine/chunk-N4PWLBZ7.mjs +5 -0
- package/dist/preview-engine/chunk-NQZKBFC6.mjs +40 -0
- package/dist/preview-engine/chunk-NWRSVVTF.mjs +186 -0
- package/dist/preview-engine/chunk-P3HBP725.mjs +1 -0
- package/dist/preview-engine/chunk-PIAJWALT.mjs +1 -0
- package/dist/preview-engine/chunk-PJ3DVG45.mjs +1 -0
- package/dist/preview-engine/chunk-QP2NI4XD.mjs +82 -0
- package/dist/preview-engine/chunk-SA3JUR6D.mjs +52 -0
- package/dist/preview-engine/chunk-SRT2OCQW.mjs +1 -0
- package/dist/preview-engine/chunk-SWD76532.mjs +98 -0
- package/dist/preview-engine/chunk-SXX7HX34.mjs +191 -0
- package/dist/preview-engine/chunk-SZ7YRPKO.mjs +3 -0
- package/dist/preview-engine/chunk-TMRLZV5X.mjs +1 -0
- package/dist/preview-engine/chunk-U446SQP3.mjs +292 -0
- package/dist/preview-engine/chunk-UDNCEHUI.mjs +141 -0
- package/dist/preview-engine/chunk-V3H7WWOT.mjs +271 -0
- package/dist/preview-engine/chunk-V7ZVVUQU.mjs +108 -0
- package/dist/preview-engine/chunk-VJGK7MLJ.mjs +3 -0
- package/dist/preview-engine/chunk-VSSB73UU.mjs +58 -0
- package/dist/preview-engine/chunk-VXUJWPIK.mjs +1 -0
- package/dist/preview-engine/chunk-XD4GKD6H.mjs +5 -0
- package/dist/preview-engine/chunk-XKO4RYKN.mjs +3 -0
- package/dist/preview-engine/chunk-XOEEGC4Z.mjs +1 -0
- package/dist/preview-engine/chunk-YAQFFQPG.mjs +1 -0
- package/dist/preview-engine/chunk-YKMBRUAE.mjs +1 -0
- package/dist/preview-engine/chunk-YSTLMWCG.mjs +1 -0
- package/dist/preview-engine/chunk-Z4ERCLNF.mjs +1 -0
- package/dist/preview-engine/chunk-ZEYUXJIV.mjs +1 -0
- package/dist/preview-engine/chunk-ZX6APG6E.mjs +117 -0
- package/dist/preview-engine/effects.mjs +1 -0
- package/dist/preview-engine/esbuild-GWV7CM7D.mjs +1 -0
- package/dist/preview-engine/fonts.mjs +1 -0
- package/dist/preview-engine/framefields.mjs +1959 -0
- package/dist/preview-engine/onnxruntime-node-56GSZEH3.mjs +1 -0
- package/dist/preview-engine/player.mjs +155 -0
- package/dist/preview-engine/renderers-2AUSIYZN.mjs +1 -0
- package/dist/preview-engine/renderers-2QN6KZJP.mjs +1 -0
- package/dist/preview-engine/renderers-32SKW7ML.mjs +1 -0
- package/dist/preview-engine/renderers-5QYK6766.mjs +1 -0
- package/dist/preview-engine/renderers-6BJA6MSU.mjs +251 -0
- package/dist/preview-engine/renderers-6QAF3LQ2.mjs +1 -0
- package/dist/preview-engine/renderers-7AO5746S.mjs +296 -0
- package/dist/preview-engine/renderers-AFYKNM6N.mjs +1 -0
- package/dist/preview-engine/renderers-AGMH5CRH.mjs +1 -0
- package/dist/preview-engine/renderers-AHSGP6LY.mjs +126 -0
- package/dist/preview-engine/renderers-ASTBICLA.mjs +1 -0
- package/dist/preview-engine/renderers-BHVPLYNN.mjs +1 -0
- package/dist/preview-engine/renderers-D7PVQFVU.mjs +1 -0
- package/dist/preview-engine/renderers-DB4ABTNA.mjs +1 -0
- package/dist/preview-engine/renderers-F2NFJI5L.mjs +1 -0
- package/dist/preview-engine/renderers-FI7YHNLY.mjs +1 -0
- package/dist/preview-engine/renderers-GBHULMPH.mjs +1 -0
- package/dist/preview-engine/renderers-GUKQUMGG.mjs +55 -0
- package/dist/preview-engine/renderers-HGT7QDY3.mjs +1 -0
- package/dist/preview-engine/renderers-HOYLA7ZK.mjs +1 -0
- package/dist/preview-engine/renderers-KKI2D3MZ.mjs +1 -0
- package/dist/preview-engine/renderers-KRAJNV4E.mjs +1 -0
- package/dist/preview-engine/renderers-KUGZKSVE.mjs +1 -0
- package/dist/preview-engine/renderers-L2EQQIOC.mjs +1 -0
- package/dist/preview-engine/renderers-LK3NRMGR.mjs +1 -0
- package/dist/preview-engine/renderers-LX654SZ3.mjs +1 -0
- package/dist/preview-engine/renderers-MCFQFYEL.mjs +1 -0
- package/dist/preview-engine/renderers-O6HOYIPS.mjs +1 -0
- package/dist/preview-engine/renderers-OEVXCGE2.mjs +1 -0
- package/dist/preview-engine/renderers-QVD6C4CS.mjs +1 -0
- package/dist/preview-engine/renderers-R3XEYD5V.mjs +248 -0
- package/dist/preview-engine/renderers-RBFWJWVM.mjs +1 -0
- package/dist/preview-engine/renderers-RX3VLVLO.mjs +1 -0
- package/dist/preview-engine/renderers-SM6JP64K.mjs +1 -0
- package/dist/preview-engine/renderers-TKMAATVS.mjs +1 -0
- package/dist/preview-engine/renderers-UGZUPONY.mjs +1 -0
- package/dist/preview-engine/renderers-UTFXZE3G.mjs +1 -0
- package/dist/preview-engine/renderers-UWPH7HBH.mjs +1 -0
- package/dist/preview-engine/renderers-UZGECFVO.mjs +1 -0
- package/dist/preview-engine/renderers-VGU3LNLT.mjs +1 -0
- package/dist/preview-engine/renderers-W3VVM5HB.mjs +1 -0
- package/dist/preview-engine/renderers-WJUTT5BB.mjs +1 -0
- package/dist/preview-engine/renderers-XA2M4YXK.mjs +1 -0
- package/dist/preview-engine/renderers-XIHRFEFQ.mjs +1 -0
- package/dist/preview-engine/renderers-XJTA5MFG.mjs +1 -0
- package/dist/preview-engine/renderers-XLTY5APF.mjs +1 -0
- package/dist/preview-engine/renderers-XZ3VXFGZ.mjs +1 -0
- package/dist/preview-engine/renderers-YKUQUCTO.mjs +124 -0
- package/dist/preview-engine/renderers-YVN3EIOP.mjs +1 -0
- package/dist/preview-engine/renderers-YWRP23SZ.mjs +125 -0
- package/dist/preview-engine/renderers-ZPWOUWZJ.mjs +120 -0
- package/dist/preview-engine/resvg-js-VMU4A77S.mjs +1 -0
- package/dist/preview-engine/server-utils-2FAIV45N.mjs +1 -0
- package/dist/preview-engine/sharp-V6ZTBNDW.mjs +1 -0
- package/dist/preview-engine/shims/fs-promises.mjs +1 -0
- package/dist/preview-engine/shims/fs.mjs +1 -0
- package/dist/preview-engine/shims/module.mjs +1 -0
- package/dist/preview-engine/shims/os.mjs +1 -0
- package/dist/preview-engine/shims/path.mjs +1 -0
- package/dist/preview-engine/shims/url.mjs +1 -0
- package/dist/preview-engine/signals.mjs +1 -0
- package/dist/preview-engine/webgpu-NSSANM4F.mjs +1 -0
- package/dist/preview-uQM210iy.mjs +2149 -0
- package/dist/preview-uQM210iy.mjs.map +1 -0
- package/dist/program-Dl510wmI.mjs +5183 -0
- package/dist/program-Dl510wmI.mjs.map +1 -0
- package/dist/renderer/index.d.mts +3 -0
- package/dist/renderer/index.mjs +6 -0
- package/dist/renderer-3BNskNuJ.mjs +3 -0
- package/dist/renderer-7DOcIxFG.mjs +288 -0
- package/dist/renderer-7DOcIxFG.mjs.map +1 -0
- package/dist/renderer-9dHlMQGX.mjs +3 -0
- package/dist/renderer-B1CvhW4p.mjs +677 -0
- package/dist/renderer-B1CvhW4p.mjs.map +1 -0
- package/dist/renderer-B2XzjK0z.mjs +3 -0
- package/dist/renderer-B80s47yo.mjs +166 -0
- package/dist/renderer-B80s47yo.mjs.map +1 -0
- package/dist/renderer-B9-QSJcG.mjs +479 -0
- package/dist/renderer-B9-QSJcG.mjs.map +1 -0
- package/dist/renderer-BAQmR0Zo.mjs +3 -0
- package/dist/renderer-BDLnExoP.mjs +127 -0
- package/dist/renderer-BDLnExoP.mjs.map +1 -0
- package/dist/renderer-BGXU6vcW.mjs +270 -0
- package/dist/renderer-BGXU6vcW.mjs.map +1 -0
- package/dist/renderer-BGvORwkQ.mjs +3 -0
- package/dist/renderer-BLikd6BK.mjs +3 -0
- package/dist/renderer-BMovYRoR.mjs +3 -0
- package/dist/renderer-BQHbp-Sp.mjs +243 -0
- package/dist/renderer-BQHbp-Sp.mjs.map +1 -0
- package/dist/renderer-BREIjsUU.mjs +252 -0
- package/dist/renderer-BREIjsUU.mjs.map +1 -0
- package/dist/renderer-BSbTJBWc.mjs +3 -0
- package/dist/renderer-BTu2EVhF.mjs +3 -0
- package/dist/renderer-BU1rwNRT.mjs +3 -0
- package/dist/renderer-BXMmISWG.mjs +499 -0
- package/dist/renderer-BXMmISWG.mjs.map +1 -0
- package/dist/renderer-BZJm3m4f.mjs +3 -0
- package/dist/renderer-B_NuVaIP.mjs +744 -0
- package/dist/renderer-B_NuVaIP.mjs.map +1 -0
- package/dist/renderer-BfJSUjPN.mjs +3 -0
- package/dist/renderer-BqyAgNt3.mjs +3 -0
- package/dist/renderer-BryTM2g7.mjs +3 -0
- package/dist/renderer-BsgIcBKH.mjs +391 -0
- package/dist/renderer-BsgIcBKH.mjs.map +1 -0
- package/dist/renderer-ByDhfrPE.mjs +422 -0
- package/dist/renderer-ByDhfrPE.mjs.map +1 -0
- package/dist/renderer-C-H680_l.mjs +3 -0
- package/dist/renderer-C17wL9QX.mjs +181 -0
- package/dist/renderer-C17wL9QX.mjs.map +1 -0
- package/dist/renderer-C2n-EHxg.mjs +1 -0
- package/dist/renderer-CB5aWAaf.mjs +343 -0
- package/dist/renderer-CB5aWAaf.mjs.map +1 -0
- package/dist/renderer-CB7lH5K8.mjs +3 -0
- package/dist/renderer-CDLrNgfo.mjs +3 -0
- package/dist/renderer-CDOUAN7X.mjs +454 -0
- package/dist/renderer-CDOUAN7X.mjs.map +1 -0
- package/dist/renderer-CH8sdfYX.mjs +387 -0
- package/dist/renderer-CH8sdfYX.mjs.map +1 -0
- package/dist/renderer-CIvaRnP_.mjs +261 -0
- package/dist/renderer-CIvaRnP_.mjs.map +1 -0
- package/dist/renderer-CMzEjdzi.mjs +369 -0
- package/dist/renderer-CMzEjdzi.mjs.map +1 -0
- package/dist/renderer-COkcU3db.mjs +3302 -0
- package/dist/renderer-COkcU3db.mjs.map +1 -0
- package/dist/renderer-CQCoggIa.mjs +3 -0
- package/dist/renderer-CQdVj2JS.mjs +3 -0
- package/dist/renderer-CQiTodg9.mjs +337 -0
- package/dist/renderer-CQiTodg9.mjs.map +1 -0
- package/dist/renderer-CV2m6k1V.mjs +3 -0
- package/dist/renderer-CYY-poLe.mjs +3 -0
- package/dist/renderer-CZgB5st8.mjs +3 -0
- package/dist/renderer-C_Ki91kc.mjs +3 -0
- package/dist/renderer-CclIvsLO.mjs +3 -0
- package/dist/renderer-Cj-whdVr.mjs +655 -0
- package/dist/renderer-Cj-whdVr.mjs.map +1 -0
- package/dist/renderer-CkykdR_D.mjs +3 -0
- package/dist/renderer-Cl1oUXMi.mjs +1143 -0
- package/dist/renderer-Cl1oUXMi.mjs.map +1 -0
- package/dist/renderer-CmApuKjS.mjs +3 -0
- package/dist/renderer-CpkiHRhh.mjs +269 -0
- package/dist/renderer-CpkiHRhh.mjs.map +1 -0
- package/dist/renderer-CszOjcRW.mjs +3 -0
- package/dist/renderer-CtVkU_GA.mjs +44 -0
- package/dist/renderer-CtVkU_GA.mjs.map +1 -0
- package/dist/renderer-Cu074POw.mjs +3 -0
- package/dist/renderer-CwQhzcUn.mjs +644 -0
- package/dist/renderer-CwQhzcUn.mjs.map +1 -0
- package/dist/renderer-CzPWB0Ss.mjs +273 -0
- package/dist/renderer-CzPWB0Ss.mjs.map +1 -0
- package/dist/renderer-D4qLmox-.mjs +3 -0
- package/dist/renderer-D6bWQtr-.mjs +3 -0
- package/dist/renderer-D6cJ6MSq.mjs +3 -0
- package/dist/renderer-D7EX8IjU.mjs +240 -0
- package/dist/renderer-D7EX8IjU.mjs.map +1 -0
- package/dist/renderer-DDp7_TUi.d.mts +10 -0
- package/dist/renderer-DDp7_TUi.d.mts.map +1 -0
- package/dist/renderer-DFKsLrUs.mjs +256 -0
- package/dist/renderer-DFKsLrUs.mjs.map +1 -0
- package/dist/renderer-DPSsf8-t.mjs +3 -0
- package/dist/renderer-DQLGnEFc.mjs +3 -0
- package/dist/renderer-DY2SVYUW.mjs +3 -0
- package/dist/renderer-DZGtBUCx.mjs +792 -0
- package/dist/renderer-DZGtBUCx.mjs.map +1 -0
- package/dist/renderer-DabG62XS.mjs +406 -0
- package/dist/renderer-DabG62XS.mjs.map +1 -0
- package/dist/renderer-DbaQLI4z.mjs +771 -0
- package/dist/renderer-DbaQLI4z.mjs.map +1 -0
- package/dist/renderer-DjI45OYC.mjs +71 -0
- package/dist/renderer-DjI45OYC.mjs.map +1 -0
- package/dist/renderer-Dm08-hAU.mjs +323 -0
- package/dist/renderer-Dm08-hAU.mjs.map +1 -0
- package/dist/renderer-DoAY5JbB.mjs +4 -0
- package/dist/renderer-Dp_FfvF-.mjs +401 -0
- package/dist/renderer-Dp_FfvF-.mjs.map +1 -0
- package/dist/renderer-Dt6fzgX5.mjs +756 -0
- package/dist/renderer-Dt6fzgX5.mjs.map +1 -0
- package/dist/renderer-DuplLRbp.mjs +3 -0
- package/dist/renderer-DvfUbZ31.mjs +3 -0
- package/dist/renderer-DxjVQV6f.mjs +311 -0
- package/dist/renderer-DxjVQV6f.mjs.map +1 -0
- package/dist/renderer-Fco4EmAu.mjs +23868 -0
- package/dist/renderer-Fco4EmAu.mjs.map +1 -0
- package/dist/renderer-HFfcJlmR.mjs +981 -0
- package/dist/renderer-HFfcJlmR.mjs.map +1 -0
- package/dist/renderer-I-Sw3JBB.mjs +145 -0
- package/dist/renderer-I-Sw3JBB.mjs.map +1 -0
- package/dist/renderer-OWQmmg4Z.mjs +697 -0
- package/dist/renderer-OWQmmg4Z.mjs.map +1 -0
- package/dist/renderer-Q_uUQipO.mjs +3 -0
- package/dist/renderer-Ryo2CEFD.mjs +586 -0
- package/dist/renderer-Ryo2CEFD.mjs.map +1 -0
- package/dist/renderer-Tp6OXWNZ.mjs +257 -0
- package/dist/renderer-Tp6OXWNZ.mjs.map +1 -0
- package/dist/renderer-UQFCgeNx.mjs +3 -0
- package/dist/renderer-WkVrkCVA.mjs +83 -0
- package/dist/renderer-WkVrkCVA.mjs.map +1 -0
- package/dist/renderer-XcmYTd6P.mjs +3818 -0
- package/dist/renderer-XcmYTd6P.mjs.map +1 -0
- package/dist/renderer-_uvdg48N.mjs +333 -0
- package/dist/renderer-_uvdg48N.mjs.map +1 -0
- package/dist/renderer-bZU_ndxf.mjs +8 -0
- package/dist/renderer-bZU_ndxf.mjs.map +1 -0
- package/dist/renderer-eMsnzJg9.mjs +3 -0
- package/dist/renderer-ho_jXJ0H.mjs +254 -0
- package/dist/renderer-ho_jXJ0H.mjs.map +1 -0
- package/dist/renderer-k2JL79kM.mjs +306 -0
- package/dist/renderer-k2JL79kM.mjs.map +1 -0
- package/dist/renderer-pHiz78e0.mjs +3 -0
- package/dist/renderer-pxXf9dvk.mjs +394 -0
- package/dist/renderer-pxXf9dvk.mjs.map +1 -0
- package/dist/renderer-vCFTm0oe.mjs +226 -0
- package/dist/renderer-vCFTm0oe.mjs.map +1 -0
- package/dist/renderer-vvpdx1vk.mjs +379 -0
- package/dist/renderer-vvpdx1vk.mjs.map +1 -0
- package/dist/renderer-x2s9LmVL.mjs +1121 -0
- package/dist/renderer-x2s9LmVL.mjs.map +1 -0
- package/dist/renderers-BWg16W-V-BXG_cjhM.mjs +49 -0
- package/dist/renderers-BWg16W-V-BXG_cjhM.mjs.map +1 -0
- package/dist/signals/index.d.mts +7 -0
- package/dist/signals/index.mjs +10 -0
- package/dist/signals-BwbdO3AN.mjs +224 -0
- package/dist/signals-BwbdO3AN.mjs.map +1 -0
- package/dist/signin-CZj4Oc5s.mjs +865 -0
- package/dist/signin-CZj4Oc5s.mjs.map +1 -0
- package/dist/sso-oidc-C0_31ThY.mjs +1051 -0
- package/dist/sso-oidc-C0_31ThY.mjs.map +1 -0
- package/dist/sts-DD4ggEXC.mjs +6 -0
- package/dist/sts-nXw8RDJI.mjs +1395 -0
- package/dist/sts-nXw8RDJI.mjs.map +1 -0
- package/package.json +173 -0
|
@@ -0,0 +1,677 @@
|
|
|
1
|
+
import { tt as signalRegistry } from "./dist-gjHmorxL.mjs";
|
|
2
|
+
import { a as configBuilder, i as VideoResultSchema, n as ImageResultSchema } from "./dist-DKm2IyEJ.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region ../../nodes/node-shadows-highlights/dist/renderers-Bhlcw5SC.mjs
|
|
6
|
+
const MAX_RADIUS = 250;
|
|
7
|
+
const MIN_RADIUS = 1;
|
|
8
|
+
const MAX_AMOUNT = 100;
|
|
9
|
+
const shadowsHighlightsConfig = configBuilder().field("shadowAmount", z.number().min(0).max(100).default(0), {
|
|
10
|
+
bindable: true,
|
|
11
|
+
dataTypes: ["Number", "Signal"],
|
|
12
|
+
label: "Shadow Boost (%)",
|
|
13
|
+
description: "Percentage to lift and recover crushed shadow details (0–100%)."
|
|
14
|
+
}).field("shadowTonalWidth", z.number().min(0).max(100).default(50), {
|
|
15
|
+
bindable: true,
|
|
16
|
+
dataTypes: ["Number", "Signal"],
|
|
17
|
+
label: "Shadow Range (%)",
|
|
18
|
+
description: "Range of dark tones affected by shadow adjustments (0–100%)."
|
|
19
|
+
}).field("shadowRadius", z.number().min(1).max(250).default(30), {
|
|
20
|
+
bindable: true,
|
|
21
|
+
dataTypes: ["Number", "Signal"],
|
|
22
|
+
label: "Shadow Radius (px)",
|
|
23
|
+
description: "Local neighborhood radius in pixels to determine shadow illumination (1–250px)."
|
|
24
|
+
}).field("highlightAmount", z.number().min(0).max(100).default(0), {
|
|
25
|
+
bindable: true,
|
|
26
|
+
dataTypes: ["Number", "Signal"],
|
|
27
|
+
label: "Highlight Suppression (%)",
|
|
28
|
+
description: "Percentage to suppress and recover blown highlight details (0–100%)."
|
|
29
|
+
}).field("highlightTonalWidth", z.number().min(0).max(100).default(50), {
|
|
30
|
+
bindable: true,
|
|
31
|
+
dataTypes: ["Number", "Signal"],
|
|
32
|
+
label: "Highlight Range (%)",
|
|
33
|
+
description: "Range of bright tones affected by highlight adjustments (0–100%)."
|
|
34
|
+
}).field("highlightRadius", z.number().min(1).max(250).default(30), {
|
|
35
|
+
bindable: true,
|
|
36
|
+
dataTypes: ["Number", "Signal"],
|
|
37
|
+
label: "Highlight Radius (px)",
|
|
38
|
+
description: "Local neighborhood radius in pixels to determine highlight exposure (1–250px)."
|
|
39
|
+
}).field("colorCorrection", z.number().min(-100).max(100).default(0), {
|
|
40
|
+
bindable: true,
|
|
41
|
+
dataTypes: ["Number", "Signal"],
|
|
42
|
+
label: "Color Correction (%)",
|
|
43
|
+
description: "Fine-tunes color saturation in recovered shadow/highlight zones (-100 to +100%)."
|
|
44
|
+
}).field("midtoneContrast", z.number().min(-100).max(100).default(0), {
|
|
45
|
+
bindable: true,
|
|
46
|
+
dataTypes: ["Number", "Signal"],
|
|
47
|
+
label: "Midtone Contrast (%)",
|
|
48
|
+
description: "Adjusts contrast centered on the midtones (-100 to +100%)."
|
|
49
|
+
}).build();
|
|
50
|
+
const ShadowsHighlightsNodeConfigSchema = shadowsHighlightsConfig.schema;
|
|
51
|
+
const ShadowsHighlightsResultSchema = z.union([ImageResultSchema, VideoResultSchema]);
|
|
52
|
+
const ShadowsHighlightsOperationSchema = ShadowsHighlightsNodeConfigSchema.extend({
|
|
53
|
+
op: z.literal("ShadowsHighlights"),
|
|
54
|
+
metadata: z.unknown().optional()
|
|
55
|
+
});
|
|
56
|
+
const defaultShadowsHighlightsConfig = ShadowsHighlightsNodeConfigSchema.parse({});
|
|
57
|
+
const WGSL_SHADOWS_HIGHLIGHTS_UNIFORMS = `
|
|
58
|
+
struct ShadowsHighlightsUniforms {
|
|
59
|
+
dirX : f32,
|
|
60
|
+
dirY : f32,
|
|
61
|
+
shadowRadius : f32,
|
|
62
|
+
highlightRadius : f32,
|
|
63
|
+
|
|
64
|
+
shadowAmount : f32,
|
|
65
|
+
shadowTonalWidth : f32,
|
|
66
|
+
highlightAmount : f32,
|
|
67
|
+
highlightTonalWidth : f32,
|
|
68
|
+
|
|
69
|
+
colorCorrection : f32,
|
|
70
|
+
midtoneContrast : f32,
|
|
71
|
+
isSecondPass : f32,
|
|
72
|
+
_pad0 : f32,
|
|
73
|
+
|
|
74
|
+
hasShadowAmountSig : f32,
|
|
75
|
+
hasShadowTonalWidthSig : f32,
|
|
76
|
+
hasShadowRadiusSig : f32,
|
|
77
|
+
hasHighlightAmountSig : f32,
|
|
78
|
+
|
|
79
|
+
hasHighlightTonalWidthSig : f32,
|
|
80
|
+
hasHighlightRadiusSig : f32,
|
|
81
|
+
hasColorCorrectionSig : f32,
|
|
82
|
+
hasMidtoneContrastSig : f32,
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
@group(0) @binding(0) var<uniform> u : ShadowsHighlightsUniforms;
|
|
86
|
+
@group(1) @binding(0) var tex : texture_2d<f32>;
|
|
87
|
+
@group(1) @binding(1) var samp : sampler;
|
|
88
|
+
@group(1) @binding(2) var origTex : texture_2d<f32>;
|
|
89
|
+
|
|
90
|
+
@group(2) @binding(0) var shadowAmountSigTex : texture_2d<f32>;
|
|
91
|
+
@group(2) @binding(1) var shadowTonalWidthSigTex : texture_2d<f32>;
|
|
92
|
+
@group(2) @binding(2) var shadowRadiusSigTex : texture_2d<f32>;
|
|
93
|
+
@group(2) @binding(3) var highlightAmountSigTex : texture_2d<f32>;
|
|
94
|
+
@group(2) @binding(4) var highlightTonalWidthSigTex : texture_2d<f32>;
|
|
95
|
+
@group(2) @binding(5) var highlightRadiusSigTex : texture_2d<f32>;
|
|
96
|
+
@group(2) @binding(6) var colorCorrectionSigTex : texture_2d<f32>;
|
|
97
|
+
@group(2) @binding(7) var midtoneContrastSigTex : texture_2d<f32>;
|
|
98
|
+
@group(2) @binding(8) var signalSamp : sampler;
|
|
99
|
+
|
|
100
|
+
struct VSOut {
|
|
101
|
+
@builtin(position) pos : vec4<f32>,
|
|
102
|
+
@location(0) uv : vec2<f32>,
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
@vertex fn vs(@builtin(vertex_index) vi: u32) -> VSOut {
|
|
106
|
+
var pos = array<vec2<f32>, 4>(
|
|
107
|
+
vec2<f32>(-1.0, 1.0),
|
|
108
|
+
vec2<f32>(1.0, 1.0),
|
|
109
|
+
vec2<f32>(-1.0, -1.0),
|
|
110
|
+
vec2<f32>(1.0, -1.0)
|
|
111
|
+
);
|
|
112
|
+
var uv = array<vec2<f32>, 4>(
|
|
113
|
+
vec2<f32>(0.0, 0.0),
|
|
114
|
+
vec2<f32>(1.0, 0.0),
|
|
115
|
+
vec2<f32>(0.0, 1.0),
|
|
116
|
+
vec2<f32>(1.0, 1.0)
|
|
117
|
+
);
|
|
118
|
+
return VSOut(vec4<f32>(pos[vi], 0.0, 1.0), uv[vi]);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
fn get_luminance(c: vec3<f32>) -> f32 {
|
|
122
|
+
return dot(c, vec3<f32>(0.2126, 0.7152, 0.0722));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@fragment fn fs(in : VSOut) -> @location(0) vec4<f32> {
|
|
126
|
+
let origCol = textureSampleLevel(origTex, samp, in.uv, 0.0);
|
|
127
|
+
|
|
128
|
+
var sAmount = u.shadowAmount;
|
|
129
|
+
if (u.hasShadowAmountSig > 0.5) {
|
|
130
|
+
sAmount = textureSampleLevel(shadowAmountSigTex, signalSamp, vec2<f32>(0.5, 0.5), 0.0).r;
|
|
131
|
+
}
|
|
132
|
+
sAmount = clamp(sAmount, 0.0, 100.0);
|
|
133
|
+
|
|
134
|
+
var sTonalWidthVal = u.shadowTonalWidth;
|
|
135
|
+
if (u.hasShadowTonalWidthSig > 0.5) {
|
|
136
|
+
sTonalWidthVal = textureSampleLevel(shadowTonalWidthSigTex, signalSamp, vec2<f32>(0.5, 0.5), 0.0).r;
|
|
137
|
+
}
|
|
138
|
+
sTonalWidthVal = clamp(sTonalWidthVal, 0.0, 100.0);
|
|
139
|
+
|
|
140
|
+
var sRadius = u.shadowRadius;
|
|
141
|
+
if (u.hasShadowRadiusSig > 0.5) {
|
|
142
|
+
sRadius = textureSampleLevel(shadowRadiusSigTex, signalSamp, vec2<f32>(0.5, 0.5), 0.0).r;
|
|
143
|
+
}
|
|
144
|
+
sRadius = clamp(sRadius, 1.0, 250.0);
|
|
145
|
+
|
|
146
|
+
var hAmount = u.highlightAmount;
|
|
147
|
+
if (u.hasHighlightAmountSig > 0.5) {
|
|
148
|
+
hAmount = textureSampleLevel(highlightAmountSigTex, signalSamp, vec2<f32>(0.5, 0.5), 0.0).r;
|
|
149
|
+
}
|
|
150
|
+
hAmount = clamp(hAmount, 0.0, 100.0);
|
|
151
|
+
|
|
152
|
+
var hTonalWidthVal = u.highlightTonalWidth;
|
|
153
|
+
if (u.hasHighlightTonalWidthSig > 0.5) {
|
|
154
|
+
hTonalWidthVal = textureSampleLevel(highlightTonalWidthSigTex, signalSamp, vec2<f32>(0.5, 0.5), 0.0).r;
|
|
155
|
+
}
|
|
156
|
+
hTonalWidthVal = clamp(hTonalWidthVal, 0.0, 100.0);
|
|
157
|
+
|
|
158
|
+
var hRadius = u.highlightRadius;
|
|
159
|
+
if (u.hasHighlightRadiusSig > 0.5) {
|
|
160
|
+
hRadius = textureSampleLevel(highlightRadiusSigTex, signalSamp, vec2<f32>(0.5, 0.5), 0.0).r;
|
|
161
|
+
}
|
|
162
|
+
hRadius = clamp(hRadius, 1.0, 250.0);
|
|
163
|
+
|
|
164
|
+
var colCorrVal = u.colorCorrection;
|
|
165
|
+
if (u.hasColorCorrectionSig > 0.5) {
|
|
166
|
+
colCorrVal = textureSampleLevel(colorCorrectionSigTex, signalSamp, vec2<f32>(0.5, 0.5), 0.0).r;
|
|
167
|
+
}
|
|
168
|
+
colCorrVal = clamp(colCorrVal, -100.0, 100.0);
|
|
169
|
+
|
|
170
|
+
var midContrastVal = u.midtoneContrast;
|
|
171
|
+
if (u.hasMidtoneContrastSig > 0.5) {
|
|
172
|
+
midContrastVal = textureSampleLevel(midtoneContrastSigTex, signalSamp, vec2<f32>(0.5, 0.5), 0.0).r;
|
|
173
|
+
}
|
|
174
|
+
midContrastVal = clamp(midContrastVal, -100.0, 100.0);
|
|
175
|
+
|
|
176
|
+
if (sAmount <= 0.0 && hAmount <= 0.0 && abs(midContrastVal) <= 0.0) {
|
|
177
|
+
if (u.isSecondPass > 0.5) {
|
|
178
|
+
return origCol;
|
|
179
|
+
}
|
|
180
|
+
return origCol;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
let dimensions = vec2<f32>(textureDimensions(tex));
|
|
184
|
+
let texelSize = 1.0 / dimensions;
|
|
185
|
+
let direction = vec2<f32>(u.dirX, u.dirY);
|
|
186
|
+
|
|
187
|
+
let lumaOrig = get_luminance(origCol.rgb / max(origCol.a, 1e-5));
|
|
188
|
+
|
|
189
|
+
// Shadow blur parameters
|
|
190
|
+
let sSpatialSigma = sRadius;
|
|
191
|
+
let stepScaleS = max(1.0, sSpatialSigma / 20.0);
|
|
192
|
+
let effectiveSigmaS = sSpatialSigma / stepScaleS;
|
|
193
|
+
let sampleRadiusS = min(i32(ceil(3.0 * effectiveSigmaS)), 64);
|
|
194
|
+
|
|
195
|
+
// Highlight blur parameters
|
|
196
|
+
let hSpatialSigma = hRadius;
|
|
197
|
+
let stepScaleH = max(1.0, hSpatialSigma / 20.0);
|
|
198
|
+
let effectiveSigmaH = hSpatialSigma / stepScaleH;
|
|
199
|
+
let sampleRadiusH = min(i32(ceil(3.0 * effectiveSigmaH)), 64);
|
|
200
|
+
|
|
201
|
+
if (u.isSecondPass <= 0.5) {
|
|
202
|
+
// PASS 1: Horizontal blur of luminance from origTex
|
|
203
|
+
// Output packed channels: R = sLumaPass1, G = hLumaPass1, B = sAlphaPass1, A = hAlphaPass1
|
|
204
|
+
var sSum = 0.0;
|
|
205
|
+
var sWeightSum = 0.0;
|
|
206
|
+
var sAlphaSum = 0.0;
|
|
207
|
+
var sKernelSum = 0.0;
|
|
208
|
+
|
|
209
|
+
for (var i = -sampleRadiusS; i <= sampleRadiusS; i++) {
|
|
210
|
+
let offset = vec2<f32>(f32(i) * stepScaleS) * direction * texelSize;
|
|
211
|
+
let x = f32(i) * stepScaleS;
|
|
212
|
+
let weight = exp(-0.5 * (x / sSpatialSigma) * (x / sSpatialSigma));
|
|
213
|
+
let sampleCol = textureSampleLevel(tex, samp, in.uv + offset, 0.0);
|
|
214
|
+
let sampleAlpha = sampleCol.a;
|
|
215
|
+
let sampleLuma = get_luminance(sampleCol.rgb / max(sampleAlpha, 1e-5));
|
|
216
|
+
sSum += sampleLuma * weight * sampleAlpha;
|
|
217
|
+
sWeightSum += weight * sampleAlpha;
|
|
218
|
+
sAlphaSum += sampleAlpha * weight;
|
|
219
|
+
sKernelSum += weight;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
var hSum = 0.0;
|
|
223
|
+
var hWeightSum = 0.0;
|
|
224
|
+
var hAlphaSum = 0.0;
|
|
225
|
+
var hKernelSum = 0.0;
|
|
226
|
+
|
|
227
|
+
for (var i = -sampleRadiusH; i <= sampleRadiusH; i++) {
|
|
228
|
+
let offset = vec2<f32>(f32(i) * stepScaleH) * direction * texelSize;
|
|
229
|
+
let x = f32(i) * stepScaleH;
|
|
230
|
+
let weight = exp(-0.5 * (x / hSpatialSigma) * (x / hSpatialSigma));
|
|
231
|
+
let sampleCol = textureSampleLevel(tex, samp, in.uv + offset, 0.0);
|
|
232
|
+
let sampleAlpha = sampleCol.a;
|
|
233
|
+
let sampleLuma = get_luminance(sampleCol.rgb / max(sampleAlpha, 1e-5));
|
|
234
|
+
hSum += sampleLuma * weight * sampleAlpha;
|
|
235
|
+
hWeightSum += weight * sampleAlpha;
|
|
236
|
+
hAlphaSum += sampleAlpha * weight;
|
|
237
|
+
hKernelSum += weight;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
let sLumaPass1 = select(lumaOrig, sSum / sWeightSum, sWeightSum > 1e-5);
|
|
241
|
+
let sAlphaPass1 = sAlphaSum / max(sKernelSum, 1e-5);
|
|
242
|
+
let hLumaPass1 = select(lumaOrig, hSum / hWeightSum, hWeightSum > 1e-5);
|
|
243
|
+
let hAlphaPass1 = hAlphaSum / max(hKernelSum, 1e-5);
|
|
244
|
+
|
|
245
|
+
return vec4<f32>(sLumaPass1, hLumaPass1, sAlphaPass1, hAlphaPass1);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// PASS 2: Vertical blur of Pass 1 + Dynamic Range Recovery
|
|
249
|
+
if (origCol.a < 1e-5) {
|
|
250
|
+
return vec4<f32>(0.0, 0.0, 0.0, 0.0);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
var sSum = 0.0;
|
|
254
|
+
var sWeightSum = 0.0;
|
|
255
|
+
|
|
256
|
+
for (var i = -sampleRadiusS; i <= sampleRadiusS; i++) {
|
|
257
|
+
let offset = vec2<f32>(f32(i) * stepScaleS) * direction * texelSize;
|
|
258
|
+
let x = f32(i) * stepScaleS;
|
|
259
|
+
let weight = exp(-0.5 * (x / sSpatialSigma) * (x / sSpatialSigma));
|
|
260
|
+
let samplePass1 = textureSampleLevel(tex, samp, in.uv + offset, 0.0);
|
|
261
|
+
let sampleAlpha = samplePass1.b;
|
|
262
|
+
let sampleLuma = samplePass1.r;
|
|
263
|
+
sSum += sampleLuma * weight * sampleAlpha;
|
|
264
|
+
sWeightSum += weight * sampleAlpha;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
var hSum = 0.0;
|
|
268
|
+
var hWeightSum = 0.0;
|
|
269
|
+
|
|
270
|
+
for (var i = -sampleRadiusH; i <= sampleRadiusH; i++) {
|
|
271
|
+
let offset = vec2<f32>(f32(i) * stepScaleH) * direction * texelSize;
|
|
272
|
+
let x = f32(i) * stepScaleH;
|
|
273
|
+
let weight = exp(-0.5 * (x / hSpatialSigma) * (x / hSpatialSigma));
|
|
274
|
+
let samplePass1 = textureSampleLevel(tex, samp, in.uv + offset, 0.0);
|
|
275
|
+
let sampleAlpha = samplePass1.a;
|
|
276
|
+
let sampleLuma = samplePass1.g;
|
|
277
|
+
hSum += sampleLuma * weight * sampleAlpha;
|
|
278
|
+
hWeightSum += weight * sampleAlpha;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
let sLumaBlur = select(lumaOrig, sSum / sWeightSum, sWeightSum > 1e-5);
|
|
282
|
+
let hLumaBlur = select(lumaOrig, hSum / hWeightSum, hWeightSum > 1e-5);
|
|
283
|
+
|
|
284
|
+
let alpha = origCol.a;
|
|
285
|
+
let rgb = origCol.rgb / alpha;
|
|
286
|
+
|
|
287
|
+
let sAmountNorm = sAmount / 100.0;
|
|
288
|
+
let hAmountNorm = hAmount / 100.0;
|
|
289
|
+
let sTonalWidth = clamp(sTonalWidthVal / 100.0, 0.01, 1.0);
|
|
290
|
+
let hTonalWidth = clamp(hTonalWidthVal / 100.0, 0.01, 1.0);
|
|
291
|
+
let colCorrNorm = colCorrVal / 100.0;
|
|
292
|
+
let midContrastNorm = midContrastVal / 100.0;
|
|
293
|
+
|
|
294
|
+
let sEvalLuma = 0.65 * sLumaBlur + 0.35 * lumaOrig;
|
|
295
|
+
let hEvalLuma = 0.65 * hLumaBlur + 0.35 * lumaOrig;
|
|
296
|
+
|
|
297
|
+
let wShadow = 1.0 - smoothstep(0.0, sTonalWidth, sEvalLuma);
|
|
298
|
+
let wHighlight = smoothstep(1.0 - hTonalWidth, 1.0, hEvalLuma);
|
|
299
|
+
|
|
300
|
+
let shadowBoost = sAmountNorm * wShadow * (1.0 - lumaOrig) * (1.0 - sqrt(clamp(sLumaBlur, 0.0, 1.0)));
|
|
301
|
+
let highlightSuppression = hAmountNorm * wHighlight * lumaOrig * sqrt(clamp(hLumaBlur, 0.0, 1.0));
|
|
302
|
+
|
|
303
|
+
var targetLuma = clamp(lumaOrig + shadowBoost - highlightSuppression, 0.0, 1.0);
|
|
304
|
+
|
|
305
|
+
if (abs(midContrastNorm) > 0.001) {
|
|
306
|
+
let midDiff = targetLuma - 0.5;
|
|
307
|
+
let sCurve = midDiff * (1.0 - 4.0 * midDiff * midDiff);
|
|
308
|
+
targetLuma = clamp(targetLuma + midContrastNorm * sCurve * 0.4, 0.0, 1.0);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
var adjustedRgb = rgb * ((targetLuma + 1e-4) / (lumaOrig + 1e-4));
|
|
312
|
+
|
|
313
|
+
let effectIntensity = sAmountNorm * wShadow + hAmountNorm * wHighlight;
|
|
314
|
+
let satFactor = clamp(1.0 + colCorrNorm * effectIntensity * 1.5, 0.0, 3.0);
|
|
315
|
+
adjustedRgb = mix(vec3<f32>(targetLuma), adjustedRgb, satFactor);
|
|
316
|
+
|
|
317
|
+
let finalRgb = clamp(adjustedRgb, vec3<f32>(0.0), vec3<f32>(1.0));
|
|
318
|
+
return vec4<f32>(finalRgb * alpha, alpha);
|
|
319
|
+
}
|
|
320
|
+
`;
|
|
321
|
+
const deviceResourceCache = /* @__PURE__ */ new WeakMap();
|
|
322
|
+
const shadowsHighlightsUniformData = new Float32Array(20);
|
|
323
|
+
function getShadowsHighlightsResources(device, targetFormat) {
|
|
324
|
+
const cached = deviceResourceCache.get(device);
|
|
325
|
+
if (cached) return cached;
|
|
326
|
+
const uniformLayout = device.createBindGroupLayout({ entries: [{
|
|
327
|
+
binding: 0,
|
|
328
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
329
|
+
buffer: { type: "uniform" }
|
|
330
|
+
}] });
|
|
331
|
+
const textureLayout = device.createBindGroupLayout({ entries: [
|
|
332
|
+
{
|
|
333
|
+
binding: 0,
|
|
334
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
335
|
+
texture: { sampleType: "float" }
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
binding: 1,
|
|
339
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
340
|
+
sampler: { type: "filtering" }
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
binding: 2,
|
|
344
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
345
|
+
texture: { sampleType: "float" }
|
|
346
|
+
}
|
|
347
|
+
] });
|
|
348
|
+
const signalTextureLayout = device.createBindGroupLayout({ entries: [
|
|
349
|
+
{
|
|
350
|
+
binding: 0,
|
|
351
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
352
|
+
texture: { sampleType: "float" }
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
binding: 1,
|
|
356
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
357
|
+
texture: { sampleType: "float" }
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
binding: 2,
|
|
361
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
362
|
+
texture: { sampleType: "float" }
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
binding: 3,
|
|
366
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
367
|
+
texture: { sampleType: "float" }
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
binding: 4,
|
|
371
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
372
|
+
texture: { sampleType: "float" }
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
binding: 5,
|
|
376
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
377
|
+
texture: { sampleType: "float" }
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
binding: 6,
|
|
381
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
382
|
+
texture: { sampleType: "float" }
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
binding: 7,
|
|
386
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
387
|
+
texture: { sampleType: "float" }
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
binding: 8,
|
|
391
|
+
visibility: GPUShaderStage.FRAGMENT,
|
|
392
|
+
sampler: { type: "filtering" }
|
|
393
|
+
}
|
|
394
|
+
] });
|
|
395
|
+
const shaderModule = device.createShaderModule({ code: WGSL_SHADOWS_HIGHLIGHTS_UNIFORMS });
|
|
396
|
+
const pipelineLayout = device.createPipelineLayout({ bindGroupLayouts: [
|
|
397
|
+
uniformLayout,
|
|
398
|
+
textureLayout,
|
|
399
|
+
signalTextureLayout
|
|
400
|
+
] });
|
|
401
|
+
const res = {
|
|
402
|
+
uniformLayout,
|
|
403
|
+
textureLayout,
|
|
404
|
+
signalTextureLayout,
|
|
405
|
+
pipeline: device.createRenderPipeline({
|
|
406
|
+
layout: pipelineLayout,
|
|
407
|
+
vertex: {
|
|
408
|
+
module: shaderModule,
|
|
409
|
+
entryPoint: "vs"
|
|
410
|
+
},
|
|
411
|
+
fragment: {
|
|
412
|
+
module: shaderModule,
|
|
413
|
+
entryPoint: "fs",
|
|
414
|
+
targets: [{ format: targetFormat }]
|
|
415
|
+
},
|
|
416
|
+
primitive: { topology: "triangle-strip" }
|
|
417
|
+
})
|
|
418
|
+
};
|
|
419
|
+
deviceResourceCache.set(device, res);
|
|
420
|
+
return res;
|
|
421
|
+
}
|
|
422
|
+
const WebGPURenderer = async (args) => {
|
|
423
|
+
const { ctx, encoder, pass, targetView, targetTexture, targetWidth, targetHeight, props, drawChild } = args;
|
|
424
|
+
const op = props.virtualMedia?.operation;
|
|
425
|
+
if (op?.op !== "ShadowsHighlights" || !op) return;
|
|
426
|
+
const childMedia = props.virtualMedia.children?.[0];
|
|
427
|
+
if (!childMedia) return;
|
|
428
|
+
pass.end();
|
|
429
|
+
const frame = props.frame ?? 0;
|
|
430
|
+
const fps = props.fps || 30;
|
|
431
|
+
const width = targetWidth;
|
|
432
|
+
const height = targetHeight;
|
|
433
|
+
const nodeId = (props.virtualMedia?.metadata)?.id || (op.inputs ? Object.keys(op.inputs)[0] : null) || props.renderId || "shadowshighlights_node";
|
|
434
|
+
const resolveField = (handleId, fallbackVal, clampMin = 0, clampMax = 1e3) => {
|
|
435
|
+
if (handleId && op.inputs?.[handleId]?.connectionValid) {
|
|
436
|
+
const outputItem = op.inputs[handleId].outputItem;
|
|
437
|
+
if (outputItem?.type === "Number") {
|
|
438
|
+
const numVal = typeof outputItem.data === "number" ? outputItem.data : outputItem.data?.value ?? fallbackVal;
|
|
439
|
+
return {
|
|
440
|
+
val: Math.max(clampMin, Math.min(clampMax, numVal)),
|
|
441
|
+
hasStaticSig: false,
|
|
442
|
+
sd: null
|
|
443
|
+
};
|
|
444
|
+
}
|
|
445
|
+
if (outputItem?.type === "Signal" && outputItem.data) return {
|
|
446
|
+
val: fallbackVal,
|
|
447
|
+
hasStaticSig: true,
|
|
448
|
+
sd: outputItem.data
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
return {
|
|
452
|
+
val: Math.max(clampMin, Math.min(clampMax, fallbackVal)),
|
|
453
|
+
hasStaticSig: false,
|
|
454
|
+
sd: null
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
const shadowAmountRes = resolveField(op.shadowAmountHandleId, Number(op.shadowAmount ?? 0), 0, MAX_AMOUNT);
|
|
458
|
+
const shadowTonalWidthRes = resolveField(op.shadowTonalWidthHandleId, Number(op.shadowTonalWidth ?? 50), 0, 100);
|
|
459
|
+
const shadowRadiusRes = resolveField(op.shadowRadiusHandleId, Number(op.shadowRadius ?? 30), MIN_RADIUS, MAX_RADIUS);
|
|
460
|
+
const highlightAmountRes = resolveField(op.highlightAmountHandleId, Number(op.highlightAmount ?? 0), 0, MAX_AMOUNT);
|
|
461
|
+
const highlightTonalWidthRes = resolveField(op.highlightTonalWidthHandleId, Number(op.highlightTonalWidth ?? 50), 0, 100);
|
|
462
|
+
const highlightRadiusRes = resolveField(op.highlightRadiusHandleId, Number(op.highlightRadius ?? 30), MIN_RADIUS, MAX_RADIUS);
|
|
463
|
+
const colorCorrectionRes = resolveField(op.colorCorrectionHandleId, Number(op.colorCorrection ?? 0), -100, 100);
|
|
464
|
+
const midtoneContrastRes = resolveField(op.midtoneContrastHandleId, Number(op.midtoneContrast ?? 0), -100, 100);
|
|
465
|
+
const tmpTex = ctx.renderer.getTemporaryTexture(width, height, [...props.excludeTextures || [], targetTexture]);
|
|
466
|
+
const tmpView = tmpTex.createView();
|
|
467
|
+
ctx.renderer.beginFrame(encoder, tmpView, {
|
|
468
|
+
r: 0,
|
|
469
|
+
g: 0,
|
|
470
|
+
b: 0,
|
|
471
|
+
a: 0
|
|
472
|
+
}, width, height, "clear").end();
|
|
473
|
+
ctx.renderer.pushScissor({
|
|
474
|
+
x: 0,
|
|
475
|
+
y: 0,
|
|
476
|
+
width,
|
|
477
|
+
height
|
|
478
|
+
});
|
|
479
|
+
ctx.renderer.pushIdentity();
|
|
480
|
+
await drawChild(childMedia, {
|
|
481
|
+
...props,
|
|
482
|
+
virtualMedia: childMedia
|
|
483
|
+
}, tmpView, tmpTex, width, height);
|
|
484
|
+
ctx.renderer.popTransform();
|
|
485
|
+
ctx.renderer.popScissor();
|
|
486
|
+
if (shadowAmountRes.val <= 0 && !shadowAmountRes.hasStaticSig && highlightAmountRes.val <= 0 && !highlightAmountRes.hasStaticSig && midtoneContrastRes.val === 0 && !midtoneContrastRes.hasStaticSig) {
|
|
487
|
+
const finalPass$1 = ctx.renderer.beginFrame(encoder, targetView, {
|
|
488
|
+
r: 0,
|
|
489
|
+
g: 0,
|
|
490
|
+
b: 0,
|
|
491
|
+
a: 0
|
|
492
|
+
}, targetWidth, targetHeight, "load");
|
|
493
|
+
ctx.renderer.drawTexture(finalPass$1, tmpTex, {
|
|
494
|
+
x: 0,
|
|
495
|
+
y: 0,
|
|
496
|
+
width: targetWidth,
|
|
497
|
+
height: targetHeight
|
|
498
|
+
}, { opacity: op.opacity ?? 1 });
|
|
499
|
+
args.pass = finalPass$1;
|
|
500
|
+
return;
|
|
501
|
+
}
|
|
502
|
+
const { pipeline, uniformLayout: uLayout, textureLayout: tLayout, signalTextureLayout: sigLayout } = getShadowsHighlightsResources(ctx.device, ctx.renderer.format);
|
|
503
|
+
const sampler = ctx.renderer.samplerCache.getSampler(ctx.device);
|
|
504
|
+
const elapsedSeconds = props.elapsedMs !== void 0 ? props.elapsedMs / 1e3 : frame / fps;
|
|
505
|
+
const durationSeconds = props.virtualMedia?.metadata?.durationMs ? props.virtualMedia.metadata.durationMs / 1e3 : props.durationMs !== void 0 ? props.durationMs / 1e3 : 0;
|
|
506
|
+
const getSignalView = (res, suffix) => {
|
|
507
|
+
if (res.hasStaticSig && res.sd) return signalRegistry.getOrCreate2DTextureView(ctx.device, encoder, res.sd.nodeId ?? `${nodeId}_${suffix}`, elapsedSeconds, durationSeconds, res.sd, width, height, props.renderId, frame, fps);
|
|
508
|
+
return signalRegistry.getDummy1x1TextureView(ctx.device);
|
|
509
|
+
};
|
|
510
|
+
const shadowAmountView = getSignalView(shadowAmountRes, "shadow_amount_sig");
|
|
511
|
+
const shadowTonalWidthView = getSignalView(shadowTonalWidthRes, "shadow_tonal_width_sig");
|
|
512
|
+
const shadowRadiusView = getSignalView(shadowRadiusRes, "shadow_radius_sig");
|
|
513
|
+
const highlightAmountView = getSignalView(highlightAmountRes, "highlight_amount_sig");
|
|
514
|
+
const highlightTonalWidthView = getSignalView(highlightTonalWidthRes, "highlight_tonal_width_sig");
|
|
515
|
+
const highlightRadiusView = getSignalView(highlightRadiusRes, "highlight_radius_sig");
|
|
516
|
+
const colorCorrectionView = getSignalView(colorCorrectionRes, "color_correction_sig");
|
|
517
|
+
const midtoneContrastView = getSignalView(midtoneContrastRes, "midtone_contrast_sig");
|
|
518
|
+
const createBindGroup = (inputTex, origTexture) => ctx.device.createBindGroup({
|
|
519
|
+
layout: tLayout,
|
|
520
|
+
entries: [
|
|
521
|
+
{
|
|
522
|
+
binding: 0,
|
|
523
|
+
resource: inputTex.createView()
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
binding: 1,
|
|
527
|
+
resource: sampler
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
binding: 2,
|
|
531
|
+
resource: origTexture.createView()
|
|
532
|
+
}
|
|
533
|
+
]
|
|
534
|
+
});
|
|
535
|
+
shadowsHighlightsUniformData[2] = shadowRadiusRes.val;
|
|
536
|
+
shadowsHighlightsUniformData[3] = highlightRadiusRes.val;
|
|
537
|
+
shadowsHighlightsUniformData[4] = shadowAmountRes.val;
|
|
538
|
+
shadowsHighlightsUniformData[5] = shadowTonalWidthRes.val;
|
|
539
|
+
shadowsHighlightsUniformData[6] = highlightAmountRes.val;
|
|
540
|
+
shadowsHighlightsUniformData[7] = highlightTonalWidthRes.val;
|
|
541
|
+
shadowsHighlightsUniformData[8] = colorCorrectionRes.val;
|
|
542
|
+
shadowsHighlightsUniformData[9] = midtoneContrastRes.val;
|
|
543
|
+
shadowsHighlightsUniformData[10] = 0;
|
|
544
|
+
shadowsHighlightsUniformData[11] = 0;
|
|
545
|
+
shadowsHighlightsUniformData[12] = shadowAmountRes.hasStaticSig ? 1 : 0;
|
|
546
|
+
shadowsHighlightsUniformData[13] = shadowTonalWidthRes.hasStaticSig ? 1 : 0;
|
|
547
|
+
shadowsHighlightsUniformData[14] = shadowRadiusRes.hasStaticSig ? 1 : 0;
|
|
548
|
+
shadowsHighlightsUniformData[15] = highlightAmountRes.hasStaticSig ? 1 : 0;
|
|
549
|
+
shadowsHighlightsUniformData[16] = highlightTonalWidthRes.hasStaticSig ? 1 : 0;
|
|
550
|
+
shadowsHighlightsUniformData[17] = highlightRadiusRes.hasStaticSig ? 1 : 0;
|
|
551
|
+
shadowsHighlightsUniformData[18] = colorCorrectionRes.hasStaticSig ? 1 : 0;
|
|
552
|
+
shadowsHighlightsUniformData[19] = midtoneContrastRes.hasStaticSig ? 1 : 0;
|
|
553
|
+
const outTex1 = ctx.renderer.getTemporaryTexture(width, height, [
|
|
554
|
+
tmpTex,
|
|
555
|
+
targetTexture,
|
|
556
|
+
...props.excludeTextures || []
|
|
557
|
+
]);
|
|
558
|
+
const outTex2 = ctx.renderer.getTemporaryTexture(width, height, [
|
|
559
|
+
tmpTex,
|
|
560
|
+
outTex1,
|
|
561
|
+
targetTexture,
|
|
562
|
+
...props.excludeTextures || []
|
|
563
|
+
]);
|
|
564
|
+
const sigBindGroup = ctx.device.createBindGroup({
|
|
565
|
+
layout: sigLayout,
|
|
566
|
+
entries: [
|
|
567
|
+
{
|
|
568
|
+
binding: 0,
|
|
569
|
+
resource: shadowAmountView
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
binding: 1,
|
|
573
|
+
resource: shadowTonalWidthView
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
binding: 2,
|
|
577
|
+
resource: shadowRadiusView
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
binding: 3,
|
|
581
|
+
resource: highlightAmountView
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
binding: 4,
|
|
585
|
+
resource: highlightTonalWidthView
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
binding: 5,
|
|
589
|
+
resource: highlightRadiusView
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
binding: 6,
|
|
593
|
+
resource: colorCorrectionView
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
binding: 7,
|
|
597
|
+
resource: midtoneContrastView
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
binding: 8,
|
|
601
|
+
resource: sampler
|
|
602
|
+
}
|
|
603
|
+
]
|
|
604
|
+
});
|
|
605
|
+
shadowsHighlightsUniformData[0] = 1;
|
|
606
|
+
shadowsHighlightsUniformData[1] = 0;
|
|
607
|
+
shadowsHighlightsUniformData[10] = 0;
|
|
608
|
+
const hBuffer = ctx.renderer.getTemporaryBuffer(shadowsHighlightsUniformData);
|
|
609
|
+
const hPass = encoder.beginRenderPass({ colorAttachments: [{
|
|
610
|
+
view: outTex1.createView(),
|
|
611
|
+
loadOp: "clear",
|
|
612
|
+
storeOp: "store",
|
|
613
|
+
clearValue: {
|
|
614
|
+
r: 0,
|
|
615
|
+
g: 0,
|
|
616
|
+
b: 0,
|
|
617
|
+
a: 0
|
|
618
|
+
}
|
|
619
|
+
}] });
|
|
620
|
+
hPass.setPipeline(pipeline);
|
|
621
|
+
hPass.setBindGroup(0, ctx.device.createBindGroup({
|
|
622
|
+
layout: uLayout,
|
|
623
|
+
entries: [{
|
|
624
|
+
binding: 0,
|
|
625
|
+
resource: { buffer: hBuffer }
|
|
626
|
+
}]
|
|
627
|
+
}));
|
|
628
|
+
hPass.setBindGroup(1, createBindGroup(tmpTex, tmpTex));
|
|
629
|
+
hPass.setBindGroup(2, sigBindGroup);
|
|
630
|
+
hPass.draw(4);
|
|
631
|
+
hPass.end();
|
|
632
|
+
shadowsHighlightsUniformData[0] = 0;
|
|
633
|
+
shadowsHighlightsUniformData[1] = 1;
|
|
634
|
+
shadowsHighlightsUniformData[10] = 1;
|
|
635
|
+
const vBuffer = ctx.renderer.getTemporaryBuffer(shadowsHighlightsUniformData);
|
|
636
|
+
const vPass = encoder.beginRenderPass({ colorAttachments: [{
|
|
637
|
+
view: outTex2.createView(),
|
|
638
|
+
loadOp: "clear",
|
|
639
|
+
storeOp: "store",
|
|
640
|
+
clearValue: {
|
|
641
|
+
r: 0,
|
|
642
|
+
g: 0,
|
|
643
|
+
b: 0,
|
|
644
|
+
a: 0
|
|
645
|
+
}
|
|
646
|
+
}] });
|
|
647
|
+
vPass.setPipeline(pipeline);
|
|
648
|
+
vPass.setBindGroup(0, ctx.device.createBindGroup({
|
|
649
|
+
layout: uLayout,
|
|
650
|
+
entries: [{
|
|
651
|
+
binding: 0,
|
|
652
|
+
resource: { buffer: vBuffer }
|
|
653
|
+
}]
|
|
654
|
+
}));
|
|
655
|
+
vPass.setBindGroup(1, createBindGroup(outTex1, tmpTex));
|
|
656
|
+
vPass.setBindGroup(2, sigBindGroup);
|
|
657
|
+
vPass.draw(4);
|
|
658
|
+
vPass.end();
|
|
659
|
+
const finalPass = ctx.renderer.beginFrame(encoder, targetView, {
|
|
660
|
+
r: 0,
|
|
661
|
+
g: 0,
|
|
662
|
+
b: 0,
|
|
663
|
+
a: 0
|
|
664
|
+
}, targetWidth, targetHeight, "load");
|
|
665
|
+
ctx.renderer.drawTexture(finalPass, outTex2, {
|
|
666
|
+
x: 0,
|
|
667
|
+
y: 0,
|
|
668
|
+
width: targetWidth,
|
|
669
|
+
height: targetHeight
|
|
670
|
+
}, { opacity: op.opacity ?? 1 });
|
|
671
|
+
args.pass = finalPass;
|
|
672
|
+
};
|
|
673
|
+
var renderers_default = { WebGPURenderer };
|
|
674
|
+
|
|
675
|
+
//#endregion
|
|
676
|
+
export { renderers_default as n, WebGPURenderer as t };
|
|
677
|
+
//# sourceMappingURL=renderer-B1CvhW4p.mjs.map
|