@nodecraft/rendermite 1.11.1 → 1.12.0
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/README.md +52 -16
- package/assets/builtin/mobheads/items/frostbite.json +6 -0
- package/assets/builtin/mobheads/models/item/frostbite.json +6 -0
- package/assets/mod-models/README.md +24 -0
- package/dist/atlas/registry.d.ts +5 -6
- package/dist/atlas/registry.js +1 -2
- package/dist/atlas/sources.d.ts +2 -2
- package/dist/atlas/sources.js +1 -2
- package/dist/{atlas-pack-BUadroKy.d.ts → atlas-pack-Dxl3kwT2.d.ts} +1 -1
- package/dist/{biomes-BGOF6gRM.js → biomes-DTmzQfnL.js} +1 -1
- package/dist/{biomes-CnnhDCnk.d.ts → biomes-_HZ93QNR.d.ts} +1 -1
- package/dist/{blend-mJAeQB3C.d.ts → blend-DnogOnaU.d.ts} +1 -1
- package/dist/{block-behaviour-B5lD0RfG.d.ts → block-behaviour-D6NwU9bV.d.ts} +6 -6
- package/dist/{block-entities-C807EY2I.js → block-entities-Dp3rMxWq.js} +1 -1
- package/dist/{block-overrides-BhuJIxKC.js → block-overrides-DMzzzeq_.js} +1 -1
- package/dist/blocks/atlas-pack.d.ts +1 -1
- package/dist/blocks/atlas-pack.js +1 -2
- package/dist/blocks/biomes.d.ts +1 -1
- package/dist/blocks/biomes.js +1 -2
- package/dist/blocks/block-behaviour.d.ts +1 -1
- package/dist/blocks/block-behaviour.js +1 -2
- package/dist/blocks/block-entities.d.ts +12 -13
- package/dist/blocks/block-entities.js +1 -2
- package/dist/blocks/block-overrides.d.ts +7 -8
- package/dist/blocks/block-overrides.js +1 -2
- package/dist/blocks/blockstate-eval.js +1 -2
- package/dist/blocks/cli.d.ts +2 -3
- package/dist/blocks/cli.js +1 -2
- package/dist/blocks/datapack.d.ts +1 -1
- package/dist/blocks/datapack.js +1 -2
- package/dist/blocks/ender-storage.d.ts +4 -5
- package/dist/blocks/ender-storage.js +1 -2
- package/dist/blocks/entities.d.ts +8 -9
- package/dist/blocks/entities.js +1 -2
- package/dist/blocks/entity-geo.d.ts +4 -5
- package/dist/blocks/entity-geo.js +1 -2
- package/dist/blocks/entity-models.d.ts +8 -9
- package/dist/blocks/entity-models.js +1 -2
- package/dist/blocks/entity-sizes.d.ts +4 -4
- package/dist/blocks/entity-sizes.js +1 -2
- package/dist/blocks/export.d.ts +1 -1
- package/dist/blocks/export.js +1 -2
- package/dist/blocks/game-rules.js +1 -2
- package/dist/blocks/geo-blocks.d.ts +5 -6
- package/dist/blocks/geo-blocks.js +1 -2
- package/dist/blocks/item-sprites.d.ts +9 -10
- package/dist/blocks/item-sprites.js +1 -2
- package/dist/blocks/light-bytecode.d.ts +1 -1
- package/dist/blocks/light-bytecode.js +1 -2
- package/dist/blocks/light-eval.d.ts +1 -1
- package/dist/blocks/light-eval.js +1 -2
- package/dist/blocks/light.d.ts +8 -9
- package/dist/blocks/light.js +1 -2
- package/dist/blocks/names.d.ts +1 -1
- package/dist/blocks/names.js +1 -2
- package/dist/blocks/obj-mesh.d.ts +1 -1
- package/dist/blocks/obj-mesh.js +1 -2
- package/dist/blocks/pack-format.d.ts +1 -1
- package/dist/blocks/pack-format.js +1 -2
- package/dist/blocks/sprite-sheet.d.ts +11 -12
- package/dist/blocks/sprite-sheet.js +1 -2
- package/dist/blocks/states.js +1 -2
- package/dist/blocks/tints.d.ts +1 -1
- package/dist/blocks/tints.js +1 -2
- package/dist/{blockstate-DVb8Mhxc.js → blockstate-D5FgI-Qv.js} +3 -4
- package/dist/{blockstate-eval-CcgxVdKb.js → blockstate-eval-Cu-9TWH0.js} +1 -2
- package/dist/builtin.d.ts +5 -6
- package/dist/builtin.js +1 -2
- package/dist/{classfile-BJSs3JH0.js → classfile-YGjbyMPk.js} +3 -4
- package/dist/{cli-BUQzP6YF.js → cli-CeEAmdX9.js} +5 -5
- package/dist/cli.js +8 -8
- package/dist/{datapack-D6eH46ay.js → datapack-BZpO7nv-.js} +8 -9
- package/dist/{datapack-CmEg0Vko.d.ts → datapack-DhBAuxw5.d.ts} +1 -1
- package/dist/{definition-ColsvWrH.js → definition-Dab22cHd.js} +1 -1
- package/dist/{descriptor-Dz2cR-BH.js → descriptor-CJLtRmBc.js} +3 -3
- package/dist/{discovery-DWe_kX8W.d.ts → discovery-2Qk3x25z.d.ts} +1 -1
- package/dist/{discovery-CD0QqxSF.js → discovery-CMHJfdHQ.js} +13 -15
- package/dist/dynamic/generators.d.ts +1 -1
- package/dist/dynamic/generators.js +1 -2
- package/dist/{encode-TzYXOEId.js → encode-BIAWeZy2.js} +2 -3
- package/dist/{encode-BNEYHHR0.d.ts → encode-DZSVif8a.d.ts} +1 -1
- package/dist/{ender-storage-CKDiYgYc.js → ender-storage-COyXL-I4.js} +1 -1
- package/dist/entities/classfile.js +1 -2
- package/dist/entities/geo-model.d.ts +3 -4
- package/dist/entities/geo-model.js +1 -2
- package/dist/entities/inherit.d.ts +4 -5
- package/dist/entities/inherit.js +1 -2
- package/dist/entities/jar-classes.js +1 -2
- package/dist/entities/link.d.ts +9 -10
- package/dist/entities/link.js +1 -2
- package/dist/entities/mappings.js +1 -2
- package/dist/entities/merge.d.ts +7 -8
- package/dist/entities/merge.js +1 -2
- package/dist/entities/model-bytecode.d.ts +5 -6
- package/dist/entities/model-bytecode.js +1 -2
- package/dist/entities/model-code.js +1 -2
- package/dist/{entities-rQ4TZjEo.js → entities-4UMp3qXG.js} +4 -5
- package/dist/{entity-fallback-BEzCbJq0.js → entity-fallback-ZfurtmEQ.js} +9 -11
- package/dist/{entity-geo-DcrcN8TE.js → entity-geo-vJTSO0bB.js} +2 -2
- package/dist/{entity-models-D6AMLAy6.js → entity-models-CleLnlV4.js} +9 -10
- package/dist/{entity-sizes-Dmr4w0vu.js → entity-sizes-CC6-7DBz.js} +1 -1
- package/dist/{entity-textures-DG6NUNyp.js → entity-textures-BS5dI5dz.js} +15 -19
- package/dist/{export-CnKiSTiu.d.ts → export-BL_3VVZI.d.ts} +1 -1
- package/dist/{export-DE1V-ElS.js → export-BPH-b4LT.js} +25 -27
- package/dist/{face-uWXECGNr.d.ts → face-BOsq7v9f.d.ts} +4 -4
- package/dist/{face-D6SfTISC.js → face-DtbBpvbY.js} +2 -2
- package/dist/{game-rules-Dehe210A.js → game-rules-DrYU_6hd.js} +14 -16
- package/dist/{generators-D6giKoab.js → generators-7b5w6s0L.js} +1 -1
- package/dist/{generators-hu_vk10m.d.ts → generators-P1goUyvI.d.ts} +1 -1
- package/dist/{geo-BOYYFFQn.js → geo-CZHkm59F.js} +10 -12
- package/dist/{geo-DsWwuC5o.d.ts → geo-Ci_PGkFI.d.ts} +5 -5
- package/dist/{geo-blocks-BQqFfAQT.js → geo-blocks-BYSBc8uq.js} +1 -1
- package/dist/{geometry-bUDBhncX.js → geometry-BGTvfmbS.js} +1 -2
- package/dist/{geometry--UzHu1Vh.d.ts → geometry-Btiz31vH.d.ts} +1 -1
- package/dist/index.d.ts +21 -21
- package/dist/index.js +19 -19
- package/dist/{inherit-DJ45bOB_.js → inherit-LSSIV8N2.js} +2 -2
- package/dist/{item-sprites-CwiEBEAJ.js → item-sprites-Cip695Kk.js} +3 -3
- package/dist/{item-styles-BAeneY1R.js → item-styles-D-7N6j1i.js} +1 -1
- package/dist/items/blockstate.d.ts +5 -6
- package/dist/items/blockstate.js +1 -2
- package/dist/items/definition.js +1 -2
- package/dist/items/discovery.d.ts +1 -1
- package/dist/items/discovery.js +1 -2
- package/dist/{jar-DvofBm71.js → jar-Df0Xhw7X.js} +1 -1
- package/dist/{jar-4Jg7ufWK.d.ts → jar-IHoEeMdV.d.ts} +1 -1
- package/dist/{jar-classes-0wqWbTax.js → jar-classes-C5P3F18e.js} +1 -1
- package/dist/{legacy-reshape-CcdstKyI.js → legacy-reshape-ClEZFEVT.js} +6 -8
- package/dist/{light-c7l13kka.js → light-Bj0iD-ok.js} +19 -23
- package/dist/{light-bytecode-CQzTG8DJ.js → light-bytecode-B4_sP6ri.js} +3 -3
- package/dist/{light-eval-BuwUW4Tj.d.ts → light-eval-DJA58Kdg.d.ts} +1 -1
- package/dist/{lighting-3FGRC3Af.d.ts → lighting-DYkS-NlV.d.ts} +2 -2
- package/dist/{lighting--5myudVu.js → lighting-f_oZTiOx.js} +2 -2
- package/dist/{link-IDjVJ2Ij.js → link-CxzBRqeB.js} +4 -5
- package/dist/{loader-qOH0Jynq.js → loader-Ckhy0t8m.js} +3 -4
- package/dist/{loader-C4gsX_wO.d.ts → loader-CrPTL0zk.d.ts} +1 -1
- package/dist/{loader-BYyPIs9f.d.ts → loader-mGAKSRp6.d.ts} +2 -2
- package/dist/{manager-D6zXmFrO.js → manager-B1VPl4UQ.js} +4 -5
- package/dist/{manager-Ct0dEOMg.d.ts → manager-Ey26G_3e.d.ts} +1 -1
- package/dist/{model-bytecode-CXYAZ5dX.js → model-bytecode-Cp4LGfjI.js} +5 -6
- package/dist/{model-code-C5Au_FKU.js → model-code-B11iaTy1.js} +1 -1
- package/dist/models/loader.d.ts +1 -1
- package/dist/models/loader.js +1 -2
- package/dist/models/types.d.ts +1 -1
- package/dist/{models-BsYA-NZg.js → models-CvFehP26.js} +1 -1
- package/dist/mods/models.d.ts +3 -4
- package/dist/mods/models.js +1 -2
- package/dist/mods/prepare.d.ts +1 -1
- package/dist/mods/prepare.js +1 -2
- package/dist/mods/synthesize.d.ts +5 -6
- package/dist/mods/synthesize.js +1 -2
- package/dist/mods/tints.d.ts +7 -8
- package/dist/mods/tints.js +1 -2
- package/dist/{names-D1abAVIB.d.ts → names-D30ZIXkK.d.ts} +1 -1
- package/dist/{obj-NxBaySXt.js → obj-BWsU8pYz.js} +16 -18
- package/dist/{obj-mesh-BBSLG2Fv.js → obj-mesh-WShUgD4g.js} +1 -1
- package/dist/{obj-mesh-CzL0lOlJ.d.ts → obj-mesh-yN3ttPYf.d.ts} +2 -2
- package/dist/output/encode.d.ts +1 -1
- package/dist/output/encode.js +1 -2
- package/dist/output/item-styles.d.ts +3 -4
- package/dist/output/item-styles.js +1 -2
- package/dist/output/minify.js +1 -2
- package/dist/output/stylesheet.d.ts +1 -1
- package/dist/output/stylesheet.js +1 -2
- package/dist/pack.d.ts +5 -5
- package/dist/pack.js +1 -1
- package/dist/{pipeline-CCfkRth7.js → pipeline-DV4hIRMp.js} +12 -12
- package/dist/{pipeline-DuPF3sap.d.ts → pipeline-DmLQ49DB.d.ts} +4 -4
- package/dist/{pool-CKGp1qup.js → pool-Co7kPWwN.js} +1 -1
- package/dist/{prepare-DkJkZXuQ.js → prepare-BC5PYUmn.js} +7 -8
- package/dist/{prepare-Ce5SpR7Y.d.ts → prepare-BpwBH_m9.d.ts} +1 -1
- package/dist/{prepare-BPzsZI_S.d.ts → prepare-CZu44oTS.d.ts} +1 -1
- package/dist/{prepare-sj36BP90.js → prepare-DJnJQYtn.js} +9 -10
- package/dist/{rasterizer-M9Y7mn-W.js → rasterizer-B3tOyG4B.js} +5 -6
- package/dist/{rasterizer-DjnurUgD.d.ts → rasterizer-UBaTPhH4.d.ts} +1 -1
- package/dist/{registry-DafxsAhG.js → registry-CNFi94eo.js} +5 -7
- package/dist/render/blend.d.ts +1 -1
- package/dist/render/blend.js +1 -2
- package/dist/render/compose.d.ts +4 -5
- package/dist/render/compose.js +1 -2
- package/dist/render/entity-fallback.d.ts +12 -13
- package/dist/render/entity-fallback.js +1 -2
- package/dist/render/face.d.ts +1 -1
- package/dist/render/face.js +1 -2
- package/dist/render/fluid-bucket.d.ts +4 -5
- package/dist/render/fluid-bucket.js +1 -2
- package/dist/render/geo.d.ts +1 -1
- package/dist/render/geo.js +1 -2
- package/dist/render/geometry.d.ts +1 -1
- package/dist/render/geometry.js +1 -2
- package/dist/render/legacy-tints.d.ts +4 -5
- package/dist/render/legacy-tints.js +1 -2
- package/dist/render/lighting.d.ts +1 -1
- package/dist/render/lighting.js +1 -2
- package/dist/render/obj.d.ts +10 -10
- package/dist/render/obj.js +1 -2
- package/dist/render/pipeline.d.ts +1 -1
- package/dist/render/pipeline.js +1 -2
- package/dist/render/rasterizer.d.ts +1 -1
- package/dist/render/rasterizer.js +1 -2
- package/dist/render/renderer.d.ts +1 -1
- package/dist/render/renderer.js +1 -2
- package/dist/render/tints.d.ts +1 -1
- package/dist/render/tints.js +1 -2
- package/dist/render/vector.js +1 -2
- package/dist/{renderer-QgROYvPv.d.ts → renderer-DZSDiXL0.d.ts} +6 -6
- package/dist/resources/cache.d.ts +2 -3
- package/dist/resources/cache.js +1 -2
- package/dist/resources/cached.d.ts +3 -4
- package/dist/resources/cached.js +1 -2
- package/dist/resources/descriptor.d.ts +1 -1
- package/dist/resources/descriptor.js +1 -2
- package/dist/resources/entity-textures.d.ts +19 -20
- package/dist/resources/entity-textures.js +1 -2
- package/dist/resources/jar.d.ts +1 -1
- package/dist/resources/jar.js +1 -2
- package/dist/resources/locator.js +1 -2
- package/dist/resources/manager.d.ts +1 -1
- package/dist/resources/manager.js +1 -2
- package/dist/resources/read-ahead.d.ts +2 -3
- package/dist/resources/read-ahead.js +1 -2
- package/dist/resources/synthetic.d.ts +1 -1
- package/dist/resources/synthetic.js +1 -2
- package/dist/resources/zip-reader.d.ts +2 -3
- package/dist/resources/zip-reader.js +1 -2
- package/dist/{run-Bf5TLTJw.js → run-5Rc8hTHT.js} +15 -11
- package/dist/{run-CxB1qabg.d.ts → run-CfvR5OAR.d.ts} +3 -3
- package/dist/run.d.ts +1 -1
- package/dist/run.js +2 -2
- package/dist/{sources-DYY5Qu-t.js → sources-BsEa9YPc.js} +1 -1
- package/dist/{sources-sFtealLJ.d.ts → sources-ByuTQR_o.d.ts} +7 -3
- package/dist/{sprite-sheet-BWsLl0Vd.js → sprite-sheet-BQsUioOJ.js} +6 -7
- package/dist/{stylesheet-C61VrCAV.js → stylesheet-Cin7eCyU.js} +6 -7
- package/dist/{stylesheet-DxHkk4qA.d.ts → stylesheet-XJ-kH6kk.d.ts} +1 -1
- package/dist/{synthesize-jTjVjPAt.js → synthesize-DNvUwWhZ.js} +3 -4
- package/dist/{synthetic-CWtFtAkR.d.ts → synthetic-C8_0G5iP.d.ts} +1 -1
- package/dist/{synthetic-rc9BPT4P.js → synthetic-y9Mr-wB2.js} +0 -0
- package/dist/textures/loader.d.ts +1 -1
- package/dist/textures/loader.js +1 -2
- package/dist/textures/overlay.d.ts +3 -4
- package/dist/textures/overlay.js +1 -2
- package/dist/{tints-B0a1K11c.d.ts → tints-BNS9JGf7.d.ts} +2 -2
- package/dist/{tints-DwFmEkf3.d.ts → tints-CvHlfvDC.d.ts} +2 -2
- package/dist/{tints-B3WQcPtx.js → tints-Cw5okshA.js} +1 -1
- package/dist/{tints-CZeyKzMv.js → tints-DhSA5SCg.js} +3 -3
- package/dist/{types-qlp3I8_-.d.ts → types-BQQzfHEY.d.ts} +4 -0
- package/dist/versions/download.d.ts +2 -3
- package/dist/versions/download.js +1 -2
- package/dist/versions/legacy-reshape.d.ts +3 -4
- package/dist/versions/legacy-reshape.js +1 -2
- package/dist/versions/prepare.d.ts +1 -1
- package/dist/versions/prepare.js +1 -2
- package/dist/workers/pool.d.ts +6 -7
- package/dist/workers/pool.js +1 -2
- package/dist/workers/render-worker.d.ts +6 -7
- package/dist/workers/render-worker.js +2 -2
- package/package.json +9 -9
package/dist/mods/tints.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { curatedTintOverrides, harvestTintOverrides };
|
|
1
|
+
export { t as curatedTintOverrides, n as harvestTintOverrides } from "../tints-DhSA5SCg.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
2
|
import { l as toFloatTexture, n as cloneFloatTexture, r as darkenTexture, s as tintTexture, t as blendPixel } from "./blend-KXMclcHk.js";
|
|
3
3
|
import { c as normalize, g as transformVector, m as sub, n as displayMatrix, o as identity, r as dot, s as multiply, t as cross } from "./vector-CCxLae_T.js";
|
|
4
|
-
import { c as lightsForProfile } from "./lighting
|
|
5
|
-
import { a as drawTexturedTriangle, i as createFaceBuffer, n as clearFaceBuffer, o as phpRound, t as RowCursor } from "./rasterizer-
|
|
4
|
+
import { c as lightsForProfile } from "./lighting-f_oZTiOx.js";
|
|
5
|
+
import { a as drawTexturedTriangle, i as createFaceBuffer, n as clearFaceBuffer, o as phpRound, t as RowCursor } from "./rasterizer-B3tOyG4B.js";
|
|
6
6
|
import { t as combineFaceBuffers } from "./compose-CuIKcRpx.js";
|
|
7
|
-
import { n as faceMaxZ, r as renderFace, t as createShadeCache } from "./face-
|
|
7
|
+
import { n as faceMaxZ, r as renderFace, t as createShadeCache } from "./face-DtbBpvbY.js";
|
|
8
8
|
import { t as paintBucketFluid } from "./fluid-bucket-B-I4ZYHl.js";
|
|
9
|
-
import { r as buildElementFaces } from "./geometry-
|
|
10
|
-
import { i as resolveTexture } from "./loader-
|
|
9
|
+
import { r as buildElementFaces } from "./geometry-BGTvfmbS.js";
|
|
10
|
+
import { i as resolveTexture } from "./loader-Ckhy0t8m.js";
|
|
11
11
|
//#region src/render/renderer.ts
|
|
12
12
|
/**
|
|
13
13
|
* Item rendering entry: flat generated items (2D layer compositing) and 3D
|
|
@@ -119,10 +119,9 @@ function evenlySpacedTicks(ticks, maxFrames) {
|
|
|
119
119
|
let previous = -1;
|
|
120
120
|
for (let index = 0; index < count; index++) {
|
|
121
121
|
const tick = Math.floor(index * ticks / count);
|
|
122
|
-
if (tick
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
122
|
+
if (tick === previous) continue;
|
|
123
|
+
sampled.push(tick);
|
|
124
|
+
previous = tick;
|
|
126
125
|
}
|
|
127
126
|
return sampled;
|
|
128
127
|
}
|
|
@@ -654,15 +653,14 @@ async function renderObjModel(model, resources, textures, options) {
|
|
|
654
653
|
const offset = pixel * 4;
|
|
655
654
|
const alpha = scratch.colors[offset + 3];
|
|
656
655
|
if (alpha <= 0) continue;
|
|
657
|
-
if (scratch.depths[pixel] >= out.depths[pixel] || out.colors[offset + 3] === 0)
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
}
|
|
656
|
+
if (!(scratch.depths[pixel] >= out.depths[pixel] || out.colors[offset + 3] === 0)) continue;
|
|
657
|
+
if (alpha >= 1 || out.colors[offset + 3] === 0) {
|
|
658
|
+
out.colors[offset] = scratch.colors[offset];
|
|
659
|
+
out.colors[offset + 1] = scratch.colors[offset + 1];
|
|
660
|
+
out.colors[offset + 2] = scratch.colors[offset + 2];
|
|
661
|
+
out.colors[offset + 3] = alpha;
|
|
662
|
+
} else blendPixel(out.colors, offset, scratch.colors[offset], scratch.colors[offset + 1], scratch.colors[offset + 2], alpha);
|
|
663
|
+
out.depths[pixel] = Math.max(out.depths[pixel], scratch.depths[pixel]);
|
|
666
664
|
}
|
|
667
665
|
}
|
|
668
666
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
-
import { n as parseMtl, r as parseObj, t as materialTexture } from "./obj-
|
|
2
|
+
import { n as parseMtl, r as parseObj, t as materialTexture } from "./obj-BWsU8pYz.js";
|
|
3
3
|
//#region src/blocks/obj-mesh.ts
|
|
4
4
|
/**
|
|
5
5
|
* OBJ geometry as pack data.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
2
|
-
import { r as ResolvedModel } from "./loader-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ey26G_3e.js";
|
|
2
|
+
import { r as ResolvedModel } from "./loader-mGAKSRp6.js";
|
|
3
3
|
//#region src/blocks/obj-mesh.d.ts
|
|
4
4
|
interface MeshGroup {
|
|
5
5
|
/** Sprite every triangle in this group samples. */
|
package/dist/output/encode.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RasterAssetFormat, c as encodeRasterAsset, i as EncodedIcon, n as EncodeOptions, o as encodeAnimatedIcon, r as EncodedAnimatedIcon, s as encodeIcon, t as AnimatedEncodeOptions } from "../encode-
|
|
1
|
+
import { a as RasterAssetFormat, c as encodeRasterAsset, i as EncodedIcon, n as EncodeOptions, o as encodeAnimatedIcon, r as EncodedAnimatedIcon, s as encodeIcon, t as AnimatedEncodeOptions } from "../encode-DZSVif8a.js";
|
|
2
2
|
export { AnimatedEncodeOptions, EncodeOptions, EncodedAnimatedIcon, EncodedIcon, RasterAssetFormat, encodeAnimatedIcon, encodeIcon, encodeRasterAsset };
|
package/dist/output/encode.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { encodeAnimatedIcon, encodeIcon, encodeRasterAsset };
|
|
1
|
+
export { t as encodeAnimatedIcon, n as encodeIcon, r as encodeRasterAsset } from "../encode-BIAWeZy2.js";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as ItemStyle } from "../stylesheet-
|
|
1
|
+
import { t as ItemStyle } from "../stylesheet-XJ-kH6kk.js";
|
|
2
2
|
//#region src/output/item-styles.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Build the ItemStyle for a rendered item. `renderedIds` gates variant rules to
|
|
5
5
|
* images that exist. Returns null for internal layer-source items (rc_*),
|
|
6
6
|
* which get no rules of their own.
|
|
7
7
|
*/
|
|
8
|
-
declare function classifyItemStyle(id: string, renderedIds: ReadonlySet<string>): ItemStyle | null;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { classifyItemStyle };
|
|
8
|
+
export declare function classifyItemStyle(id: string, renderedIds: ReadonlySet<string>): ItemStyle | null;
|
|
9
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { classifyItemStyle };
|
|
1
|
+
export { t as classifyItemStyle } from "../item-styles-D-7N6j1i.js";
|
package/dist/output/minify.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { minifyStylesheet };
|
|
1
|
+
export { t as minifyStylesheet } from "../minify-bjMRmr5J.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as itemClass, n as StylesheetOptions, r as generateStylesheet, t as ItemStyle } from "../stylesheet-
|
|
1
|
+
import { i as itemClass, n as StylesheetOptions, r as generateStylesheet, t as ItemStyle } from "../stylesheet-XJ-kH6kk.js";
|
|
2
2
|
export { ItemStyle, StylesheetOptions, generateStylesheet, itemClass };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { generateStylesheet, itemClass };
|
|
1
|
+
export { t as generateStylesheet, n as itemClass } from "../stylesheet-Cin7eCyU.js";
|
package/dist/pack.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as BiomeClimatePack, t as BiomeClimate } from "./biomes-
|
|
1
|
+
import { n as BiomeClimatePack, t as BiomeClimate } from "./biomes-_HZ93QNR.js";
|
|
2
2
|
import { a as BlockStateMultipartCase, d as matchesCondition, n as BlockProperties, o as BlockStateVariantCase, p as weightedVariantIndex, r as BlockStateDefinition, s as MultipartCondition, t as BlockModelVariant, u as evaluateBlockState } from "./blockstate-eval-C-ZSx78w.js";
|
|
3
3
|
import { t as GameRule } from "./game-rules-ThvdDG3B.js";
|
|
4
|
-
import { n as ObjMesh, t as MeshGroup } from "./obj-mesh-
|
|
5
|
-
import { n as BlockTintPack, t as BlockTint } from "./tints-
|
|
6
|
-
import { B as BlockPackStatesFile, C as BlockPackBlockState, F as BlockPackModelsFile, H as BlockPackTintsFile, I as BlockPackNamesFile, L as BlockPackRenderLayer, M as BlockPackLightFile, N as BlockPackMetaFile, O as BlockPackFace, P as BlockPackModel, R as BlockPackSprite, S as BlockPackBiomesFile, T as BlockPackElement, U as BlockPackVariant, V as BlockPackTagsFile, b as BlockPackAtlasPage, j as BlockPackLight, k as BlockPackGameRulesFile, n as PushReactionName, t as BlockBehaviour, v as BlockPackAdvancementsFile, w as BlockPackBlockStatesFile, x as BlockPackBehaviourFile, y as BlockPackAtlasFile, z as BlockPackSpriteFrame } from "./block-behaviour-
|
|
7
|
-
import { t as blockLightLevel } from "./light-eval-
|
|
4
|
+
import { n as ObjMesh, t as MeshGroup } from "./obj-mesh-yN3ttPYf.js";
|
|
5
|
+
import { n as BlockTintPack, t as BlockTint } from "./tints-CvHlfvDC.js";
|
|
6
|
+
import { B as BlockPackStatesFile, C as BlockPackBlockState, F as BlockPackModelsFile, H as BlockPackTintsFile, I as BlockPackNamesFile, L as BlockPackRenderLayer, M as BlockPackLightFile, N as BlockPackMetaFile, O as BlockPackFace, P as BlockPackModel, R as BlockPackSprite, S as BlockPackBiomesFile, T as BlockPackElement, U as BlockPackVariant, V as BlockPackTagsFile, b as BlockPackAtlasPage, j as BlockPackLight, k as BlockPackGameRulesFile, n as PushReactionName, t as BlockBehaviour, v as BlockPackAdvancementsFile, w as BlockPackBlockStatesFile, x as BlockPackBehaviourFile, y as BlockPackAtlasFile, z as BlockPackSpriteFrame } from "./block-behaviour-D6NwU9bV.js";
|
|
7
|
+
import { t as blockLightLevel } from "./light-eval-DJA58Kdg.js";
|
|
8
8
|
export { type BiomeClimate, type BiomeClimatePack, type BlockBehaviour, type BlockModelVariant, type BlockPackAdvancementsFile, type BlockPackAtlasFile, type BlockPackAtlasPage, type BlockPackBehaviourFile, type BlockPackBiomesFile, type BlockPackBlockState, type BlockPackBlockStatesFile, type BlockPackElement, type BlockPackFace, type BlockPackGameRulesFile, type BlockPackLight, type BlockPackLightFile, type BlockPackMetaFile, type BlockPackModel, type BlockPackModelsFile, type BlockPackNamesFile, type BlockPackRenderLayer, type BlockPackSprite, type BlockPackSpriteFrame, type BlockPackStatesFile, type BlockPackTagsFile, type BlockPackTintsFile, type BlockPackVariant, type BlockProperties, type BlockStateDefinition, type BlockStateMultipartCase, type BlockStateVariantCase, type BlockTint, type BlockTintPack, type GameRule, type MeshGroup, type MultipartCondition, type ObjMesh, type PushReactionName, blockLightLevel, evaluateBlockState, matchesCondition, weightedVariantIndex };
|
package/dist/pack.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as matchesCondition, o as weightedVariantIndex, r as evaluateBlockState } from "./blockstate-eval-
|
|
1
|
+
import { i as matchesCondition, o as weightedVariantIndex, r as evaluateBlockState } from "./blockstate-eval-Cu-9TWH0.js";
|
|
2
2
|
import { t as blockLightLevel } from "./light-eval-BsJJoSv4.js";
|
|
3
3
|
export { blockLightLevel, evaluateBlockState, matchesCondition, weightedVariantIndex };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
-
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-
|
|
2
|
+
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
|
|
3
3
|
import { l as toFloatTexture, t as blendPixel } from "./blend-KXMclcHk.js";
|
|
4
|
-
import { t as ModelLoader } from "./loader-
|
|
5
|
-
import { c as renderModel, l as renderModelFrames, o as boxDownscale, s as pointResize } from "./obj-
|
|
6
|
-
import { a as renderGeo, t as findGeoForItem } from "./geo-
|
|
7
|
-
import { a as defaultProperties } from "./definition-
|
|
8
|
-
import { i as resolveItem } from "./discovery-
|
|
9
|
-
import { a as resolveTints } from "./tints-
|
|
10
|
-
import { t as loadAtlasResolver } from "./registry-
|
|
4
|
+
import { t as ModelLoader } from "./loader-Ckhy0t8m.js";
|
|
5
|
+
import { c as renderModel, l as renderModelFrames, o as boxDownscale, s as pointResize } from "./obj-BWsU8pYz.js";
|
|
6
|
+
import { a as renderGeo, t as findGeoForItem } from "./geo-CZHkm59F.js";
|
|
7
|
+
import { a as defaultProperties } from "./definition-Dab22cHd.js";
|
|
8
|
+
import { i as resolveItem } from "./discovery-CMHJfdHQ.js";
|
|
9
|
+
import { a as resolveTints } from "./tints-Cw5okshA.js";
|
|
10
|
+
import { t as loadAtlasResolver } from "./registry-CNFi94eo.js";
|
|
11
11
|
import { t as CachedListingResourceManager } from "./cached-BOX3n1Dl.js";
|
|
12
12
|
import { n as TextureLoader } from "./loader-CsgtBuBo.js";
|
|
13
|
-
import { t as encodeAnimatedIcon } from "./encode-
|
|
14
|
-
import { a as builtinDynamicResources } from "./generators-
|
|
15
|
-
import { a as spawnEggTints, i as renderEntityFallback, n as dyedVariantTint, r as renderDyedVariantFallback, t as dyeVariantName } from "./entity-fallback-
|
|
13
|
+
import { t as encodeAnimatedIcon } from "./encode-BIAWeZy2.js";
|
|
14
|
+
import { a as builtinDynamicResources } from "./generators-7b5w6s0L.js";
|
|
15
|
+
import { a as spawnEggTints, i as renderEntityFallback, n as dyedVariantTint, r as renderDyedVariantFallback, t as dyeVariantName } from "./entity-fallback-ZfurtmEQ.js";
|
|
16
16
|
import { t as legacyTintsForChain } from "./legacy-tints-l-541wgI.js";
|
|
17
|
-
import { n as defaultBlockStateModel, t as blockStateTransform } from "./blockstate-
|
|
17
|
+
import { n as defaultBlockStateModel, t as blockStateTransform } from "./blockstate-D5FgI-Qv.js";
|
|
18
18
|
import path from "node:path";
|
|
19
19
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
20
20
|
//#region src/render/pipeline.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
2
|
-
import { n as FloatTexture } from "./blend-
|
|
3
|
-
import { a as LightingProfileName } from "./lighting-
|
|
4
|
-
import { n as AnimationLimits } from "./renderer-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ey26G_3e.js";
|
|
2
|
+
import { n as FloatTexture } from "./blend-DnogOnaU.js";
|
|
3
|
+
import { a as LightingProfileName } from "./lighting-DYkS-NlV.js";
|
|
4
|
+
import { n as AnimationLimits } from "./renderer-DZSDiXL0.js";
|
|
5
5
|
//#region src/render/pipeline.d.ts
|
|
6
6
|
interface PipelineSettings {
|
|
7
7
|
builtin?: string;
|
|
@@ -2,7 +2,7 @@ import { Worker } from "node:worker_threads";
|
|
|
2
2
|
//#region src/workers/pool.ts
|
|
3
3
|
/**
|
|
4
4
|
* Worker-thread pool for parallel item rendering. Design goals born from the
|
|
5
|
-
* PHP tool's failure modes (docs/
|
|
5
|
+
* PHP tool's failure modes (docs/mod-coverage.md): errors
|
|
6
6
|
* cross the worker boundary as structured data, a dead worker's in-flight items
|
|
7
7
|
* are reported rather than orphaned, and results stream back so output lands
|
|
8
8
|
* incrementally.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
-
import { n as MapResourceManager, t as KindFilteredResourceManager } from "./synthetic-
|
|
3
|
-
import { t as reshapeLegacyAssets } from "./legacy-reshape-
|
|
4
|
-
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-
|
|
5
|
-
import { t as JarResourceManager } from "./jar-
|
|
2
|
+
import { n as MapResourceManager, t as KindFilteredResourceManager } from "./synthetic-y9Mr-wB2.js";
|
|
3
|
+
import { t as reshapeLegacyAssets } from "./legacy-reshape-ClEZFEVT.js";
|
|
4
|
+
import { n as LayeredResourceManager, t as FolderResourceManager } from "./manager-B1VPl4UQ.js";
|
|
5
|
+
import { t as JarResourceManager } from "./jar-Df0Xhw7X.js";
|
|
6
6
|
//#region src/versions/prepare.ts
|
|
7
7
|
/**
|
|
8
8
|
* Version-era detection and asset preparation, replacing the file-tree surgery
|
|
@@ -101,10 +101,9 @@ async function prepareVersionResources(options) {
|
|
|
101
101
|
const base = new LayeredResourceManager(layers);
|
|
102
102
|
for (const [modern, legacy] of MOVED_TEXTURES) {
|
|
103
103
|
const modernLocator = ResourceLocator.parse(modern);
|
|
104
|
-
if (
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
104
|
+
if (await base.hasResource("texture", modernLocator)) continue;
|
|
105
|
+
const legacyContent = await base.getResource("texture", ResourceLocator.parse(legacy));
|
|
106
|
+
if (legacyContent) shims.set("texture", modern, legacyContent);
|
|
108
107
|
}
|
|
109
108
|
return new LayeredResourceManager([shims, base]);
|
|
110
109
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ey26G_3e.js";
|
|
2
2
|
//#region src/versions/prepare.d.ts
|
|
3
3
|
/** Dotted-numeric compare handling both `1.21.8` and the `26.2` scheme. */
|
|
4
4
|
declare function compareVersions(left: string, right: string): number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ResourceManager } from "./manager-
|
|
1
|
+
import { a as ResourceManager } from "./manager-Ey26G_3e.js";
|
|
2
2
|
//#region src/mods/prepare.d.ts
|
|
3
3
|
/** Loader-owned namespaces that never contain renderable mod items. */
|
|
4
4
|
declare const LOADER_NAMESPACES: Set<string>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as LayeredResourceManager } from "./manager-
|
|
2
|
-
import { n as UnsafeJarError, t as JarResourceManager } from "./jar-
|
|
3
|
-
import { t as curatedModelOverrides } from "./models-
|
|
4
|
-
import { t as synthesizeItemModels } from "./synthesize-
|
|
5
|
-
import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-
|
|
1
|
+
import { n as LayeredResourceManager } from "./manager-B1VPl4UQ.js";
|
|
2
|
+
import { n as UnsafeJarError, t as JarResourceManager } from "./jar-Df0Xhw7X.js";
|
|
3
|
+
import { t as curatedModelOverrides } from "./models-CvFehP26.js";
|
|
4
|
+
import { t as synthesizeItemModels } from "./synthesize-DNvUwWhZ.js";
|
|
5
|
+
import { n as harvestTintOverrides, t as curatedTintOverrides } from "./tints-DhSA5SCg.js";
|
|
6
6
|
//#region src/mods/prepare.ts
|
|
7
7
|
/**
|
|
8
8
|
* Mod asset composition: mod jars layered under the vanilla base (vanilla wins
|
|
@@ -58,11 +58,10 @@ async function prepareModResources(options) {
|
|
|
58
58
|
if (!await hasItemContent(base, namespace)) continue;
|
|
59
59
|
namespaces.push(namespace);
|
|
60
60
|
const result = await synthesizeItemModels(base, namespace);
|
|
61
|
-
if (result.synthesized
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
61
|
+
if (result.synthesized <= 0) continue;
|
|
62
|
+
synthesized += result.synthesized;
|
|
63
|
+
synthLayers.push(result.models);
|
|
64
|
+
options.onProgress?.(`Synthesized ${result.synthesized} item models for ${namespace}`);
|
|
66
65
|
}
|
|
67
66
|
let tintOverrides = 0;
|
|
68
67
|
const tintLayers = [];
|
|
@@ -3,7 +3,7 @@ import { o as shadeTexel } from "./blend-KXMclcHk.js";
|
|
|
3
3
|
/**
|
|
4
4
|
* Faithful port of renderchest's TriangleRasterizer (scanline, nearest-neighbour
|
|
5
5
|
* sampling by truncation, 0.3 sub-texel start bias, 1px color overdraw with
|
|
6
|
-
* depth written only inside the span). See docs/
|
|
6
|
+
* depth written only inside the span). See docs/renderchest-spec.md §4.4.
|
|
7
7
|
*/
|
|
8
8
|
function createFaceBuffer(width, height) {
|
|
9
9
|
return {
|
|
@@ -206,11 +206,10 @@ function drawTexturedTriangle(p1in, p2in, p3in, buffer, texture, cursor = new Ro
|
|
|
206
206
|
buffer.colors[dst + 3] = texture.data[src + 3];
|
|
207
207
|
} else shadeTexel(buffer.colors, dst, texture.data, src, shading, texX, texY);
|
|
208
208
|
}
|
|
209
|
-
if (x
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}
|
|
209
|
+
if (x < startX || x >= endX || x < 0 || x >= width) continue;
|
|
210
|
+
const clamped = currentDepth < 0 ? 0 : Math.min(currentDepth, 1);
|
|
211
|
+
buffer.depths[rowOffset + x] = Math.round(clamped * 65535) / 65535;
|
|
212
|
+
textureX += textureStep;
|
|
214
213
|
}
|
|
215
214
|
cursor.next();
|
|
216
215
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FloatTexture, t as FaceShading } from "./blend-
|
|
1
|
+
import { n as FloatTexture, t as FaceShading } from "./blend-DnogOnaU.js";
|
|
2
2
|
//#region src/render/rasterizer.d.ts
|
|
3
3
|
/** The rectangle of a buffer written since it was last cleared. */
|
|
4
4
|
interface DirtyRect {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "./locator-COMEtEn9.js";
|
|
2
|
-
import { o as createAtlasResolver, r as PalettedPermutationsSource, s as parseAtlasSources } from "./sources-
|
|
2
|
+
import { o as createAtlasResolver, r as PalettedPermutationsSource, s as parseAtlasSources } from "./sources-BsEa9YPc.js";
|
|
3
3
|
//#region src/atlas/registry.ts
|
|
4
4
|
/**
|
|
5
5
|
* Collects every `atlases/*.json` across namespaces into one resolver.
|
|
@@ -35,12 +35,10 @@ var InferredItemTrimSource = class {
|
|
|
35
35
|
const key = await this.firstTexture([new ResourceLocator(locator.namespace, "trims/color_palettes/trim_palette"), ResourceLocator.parse("minecraft:trims/color_palettes/trim_palette")]);
|
|
36
36
|
const separator = variant.indexOf("-");
|
|
37
37
|
const namespaced = (await this.resources.listNamespaces()).filter((namespace) => variant.startsWith(`${namespace}_`)).map((namespace) => new ResourceLocator(namespace, `trims/color_palettes/${variant.slice(namespace.length + 1)}`));
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
...namespaced
|
|
43
|
-
]);
|
|
38
|
+
const candidates = [new ResourceLocator(locator.namespace, `trims/color_palettes/${variant}`), ResourceLocator.parse(`minecraft:trims/color_palettes/${variant}`)];
|
|
39
|
+
if (separator > 0) candidates.push(new ResourceLocator(variant.slice(0, separator), `trims/color_palettes/${variant.slice(separator + 1)}`));
|
|
40
|
+
candidates.push(...namespaced);
|
|
41
|
+
const palette = await this.firstTexture(candidates);
|
|
44
42
|
if (!key || !palette) return null;
|
|
45
43
|
return new PalettedPermutationsSource({
|
|
46
44
|
textures: [base.toString()],
|
package/dist/render/blend.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as darkenTexture, c as shadeTexel, d as toFloatTexture, f as uvWindow, i as cloneFloatTexture, l as tintTexture, n as FloatTexture, o as q16, r as blendPixel, s as scaleTextureAlpha, t as FaceShading, u as toByteTexture } from "../blend-
|
|
1
|
+
import { a as darkenTexture, c as shadeTexel, d as toFloatTexture, f as uvWindow, i as cloneFloatTexture, l as tintTexture, n as FloatTexture, o as q16, r as blendPixel, s as scaleTextureAlpha, t as FaceShading, u as toByteTexture } from "../blend-DnogOnaU.js";
|
|
2
2
|
export { FaceShading, FloatTexture, blendPixel, cloneFloatTexture, darkenTexture, q16, scaleTextureAlpha, shadeTexel, tintTexture, toByteTexture, toFloatTexture, uvWindow };
|
package/dist/render/blend.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { blendPixel, cloneFloatTexture, darkenTexture, q16, scaleTextureAlpha, shadeTexel, tintTexture, toByteTexture, toFloatTexture, uvWindow };
|
|
1
|
+
export { t as blendPixel, n as cloneFloatTexture, r as darkenTexture, i as q16, a as scaleTextureAlpha, o as shadeTexel, s as tintTexture, c as toByteTexture, l as toFloatTexture, u as uvWindow } from "../blend-KXMclcHk.js";
|
package/dist/render/compose.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as FloatTexture } from "../blend-
|
|
2
|
-
import { n as FaceBuffer } from "../rasterizer-
|
|
1
|
+
import { n as FloatTexture } from "../blend-DnogOnaU.js";
|
|
2
|
+
import { n as FaceBuffer } from "../rasterizer-UBaTPhH4.js";
|
|
3
3
|
//#region src/render/compose.d.ts
|
|
4
|
-
declare function combineFaceBuffers(width: number, height: number, faces: FaceBuffer[]): FloatTexture;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { combineFaceBuffers };
|
|
4
|
+
export declare function combineFaceBuffers(width: number, height: number, faces: FaceBuffer[]): FloatTexture;
|
|
5
|
+
//#endregion
|
package/dist/render/compose.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { combineFaceBuffers };
|
|
1
|
+
export { t as combineFaceBuffers } from "../compose-CuIKcRpx.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as ResourceManager } from "../manager-
|
|
2
|
-
import { i as TextureLoader } from "../loader-
|
|
3
|
-
import { t as ModelLoader } from "../loader-
|
|
4
|
-
import { n as FloatTexture } from "../blend-
|
|
5
|
-
import { r as TintColor } from "../face-
|
|
6
|
-
import { i as RenderOptions } from "../renderer-
|
|
1
|
+
import { a as ResourceManager } from "../manager-Ey26G_3e.js";
|
|
2
|
+
import { i as TextureLoader } from "../loader-CrPTL0zk.js";
|
|
3
|
+
import { t as ModelLoader } from "../loader-mGAKSRp6.js";
|
|
4
|
+
import { n as FloatTexture } from "../blend-DnogOnaU.js";
|
|
5
|
+
import { r as TintColor } from "../face-BOsq7v9f.js";
|
|
6
|
+
import { i as RenderOptions } from "../renderer-DZSDiXL0.js";
|
|
7
7
|
//#region src/render/entity-fallback.d.ts
|
|
8
8
|
/** The dye name a `<dye>_<thing>` mod item is prefixed with, or null. */
|
|
9
|
-
declare function dyeVariantName(id: string): string | null;
|
|
9
|
+
export declare function dyeVariantName(id: string): string | null;
|
|
10
10
|
/**
|
|
11
11
|
* The dye color a `<dye>_<thing>` item name implies, or null. Mods that name
|
|
12
12
|
* variants after dyes sometimes register the matching DyeColor as the tint in
|
|
@@ -18,14 +18,14 @@ declare function dyeVariantName(id: string): string | null;
|
|
|
18
18
|
* again multiplies the dye in — chipped's blue_paper_lantern came out near
|
|
19
19
|
* black. Callers must check the model's textures; see `dyeVariantName`.
|
|
20
20
|
*/
|
|
21
|
-
declare function dyedVariantTint(id: string): TintColor | null;
|
|
21
|
+
export declare function dyedVariantTint(id: string): TintColor | null;
|
|
22
22
|
/**
|
|
23
23
|
* Dyed variants of vanilla items whose models mods generate at runtime (quark's
|
|
24
24
|
* `black_frame_empty` parents a block model that exists nowhere on disk): render
|
|
25
25
|
* the vanilla base item tinted with the dye color. Suffixes like `_empty`/`_map`
|
|
26
26
|
* are state variants of the same icon.
|
|
27
27
|
*/
|
|
28
|
-
declare function renderDyedVariantFallback(id: string, models: ModelLoader, textures: TextureLoader, options: RenderOptions): Promise<FloatTexture | null>;
|
|
28
|
+
export declare function renderDyedVariantFallback(id: string, models: ModelLoader, textures: TextureLoader, options: RenderOptions): Promise<FloatTexture | null>;
|
|
29
29
|
/**
|
|
30
30
|
* Derive spawn-egg tints from the mob's entity texture. Mod egg colors live
|
|
31
31
|
* in item-registration code, so the two dominant colors of the entity skin
|
|
@@ -33,12 +33,11 @@ declare function renderDyedVariantFallback(id: string, models: ModelLoader, text
|
|
|
33
33
|
* visually distinct from it. Returns null when no entity texture matches —
|
|
34
34
|
* the egg then renders untinted, as before.
|
|
35
35
|
*/
|
|
36
|
-
declare function spawnEggTints(id: string, resources: ResourceManager, textures: TextureLoader): Promise<TintColor[] | null>;
|
|
36
|
+
export declare function spawnEggTints(id: string, resources: ResourceManager, textures: TextureLoader): Promise<TintColor[] | null>;
|
|
37
37
|
/**
|
|
38
38
|
* Render a code-rendered (builtin/entity) item through builtin geometry when
|
|
39
39
|
* its name identifies the kind. Returns null when no heuristic applies —
|
|
40
40
|
* this must never guess across kinds.
|
|
41
41
|
*/
|
|
42
|
-
declare function renderEntityFallback(id: string, models: ModelLoader, textures: TextureLoader, resources: ResourceManager, options: RenderOptions): Promise<FloatTexture | null>;
|
|
43
|
-
//#endregion
|
|
44
|
-
export { dyeVariantName, dyedVariantTint, renderDyedVariantFallback, renderEntityFallback, spawnEggTints };
|
|
42
|
+
export declare function renderEntityFallback(id: string, models: ModelLoader, textures: TextureLoader, resources: ResourceManager, options: RenderOptions): Promise<FloatTexture | null>;
|
|
43
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { dyeVariantName, dyedVariantTint, renderDyedVariantFallback, renderEntityFallback, spawnEggTints };
|
|
1
|
+
export { t as dyeVariantName, n as dyedVariantTint, r as renderDyedVariantFallback, i as renderEntityFallback, a as spawnEggTints } from "../entity-fallback-ZfurtmEQ.js";
|
package/dist/render/face.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as faceMaxZ, i as createShadeCache, n as RenderableFace, o as renderFace, r as TintColor, t as FaceShadeCache } from "../face-
|
|
1
|
+
import { a as faceMaxZ, i as createShadeCache, n as RenderableFace, o as renderFace, r as TintColor, t as FaceShadeCache } from "../face-BOsq7v9f.js";
|
|
2
2
|
export { FaceShadeCache, RenderableFace, TintColor, createShadeCache, faceMaxZ, renderFace };
|
package/dist/render/face.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { createShadeCache, faceMaxZ, renderFace };
|
|
1
|
+
export { t as createShadeCache, n as faceMaxZ, r as renderFace } from "../face-DtbBpvbY.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ResourceManager } from "../manager-
|
|
2
|
-
import { i as TextureLoader, r as Texture } from "../loader-
|
|
1
|
+
import { a as ResourceManager } from "../manager-Ey26G_3e.js";
|
|
2
|
+
import { i as TextureLoader, r as Texture } from "../loader-CrPTL0zk.js";
|
|
3
3
|
//#region src/render/fluid-bucket.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Paint the fluid into a bucket sprite IN PLACE (pass a copy, never a cached
|
|
@@ -9,6 +9,5 @@ import { i as TextureLoader, r as Texture } from "../loader-C4gsX_wO.js";
|
|
|
9
9
|
* touches. Returns false when the fluid can't be resolved — the plain bucket
|
|
10
10
|
* stays, which is the old behavior.
|
|
11
11
|
*/
|
|
12
|
-
declare function paintBucketFluid(bucket: Texture, fluid: string, textures: TextureLoader, resources?: ResourceManager): Promise<boolean>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { paintBucketFluid };
|
|
12
|
+
export declare function paintBucketFluid(bucket: Texture, fluid: string, textures: TextureLoader, resources?: ResourceManager): Promise<boolean>;
|
|
13
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { paintBucketFluid };
|
|
1
|
+
export { t as paintBucketFluid } from "../fluid-bucket-B-I4ZYHl.js";
|
package/dist/render/geo.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as parseGeo, i as nameTokens, n as findGeoForItem, o as renderGeo, r as geoToFaces, t as ParsedGeo } from "../geo-
|
|
1
|
+
import { a as parseGeo, i as nameTokens, n as findGeoForItem, o as renderGeo, r as geoToFaces, t as ParsedGeo } from "../geo-Ci_PGkFI.js";
|
|
2
2
|
export { ParsedGeo, findGeoForItem, geoToFaces, nameTokens, parseGeo, renderGeo };
|
package/dist/render/geo.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { findGeoForItem, geoToFaces, nameTokens, parseGeo, renderGeo };
|
|
1
|
+
export { t as findGeoForItem, n as geoToFaces, r as nameTokens, i as parseGeo, a as renderGeo } from "../geo-CZHkm59F.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as buildElementFaces, n as FaceGeometry, r as applyElementRotation, t as FACE_NORMALS } from "../geometry
|
|
1
|
+
import { i as buildElementFaces, n as FaceGeometry, r as applyElementRotation, t as FACE_NORMALS } from "../geometry-Btiz31vH.js";
|
|
2
2
|
export { FACE_NORMALS, FaceGeometry, applyElementRotation, buildElementFaces };
|
package/dist/render/geometry.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { FACE_NORMALS, applyElementRotation, buildElementFaces };
|
|
1
|
+
export { t as FACE_NORMALS, n as applyElementRotation, r as buildElementFaces } from "../geometry-BGTvfmbS.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as TextureLoader } from "../loader-
|
|
2
|
-
import { r as TintColor } from "../face-
|
|
1
|
+
import { i as TextureLoader } from "../loader-CrPTL0zk.js";
|
|
2
|
+
import { r as TintColor } from "../face-BOsq7v9f.js";
|
|
3
3
|
//#region src/render/legacy-tints.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Tints for a model rendered without an item definition (pre-1.21.4 eras and
|
|
@@ -7,6 +7,5 @@ import { r as TintColor } from "../face-uWXECGNr.js";
|
|
|
7
7
|
* item model beats the block model it parents, matching upstream's per-model
|
|
8
8
|
* binding. Returns null when nothing in the chain is tinted.
|
|
9
9
|
*/
|
|
10
|
-
declare function legacyTintsForChain(chain: string[], textures: TextureLoader): Promise<Array<TintColor | null> | null>;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { legacyTintsForChain };
|
|
10
|
+
export declare function legacyTintsForChain(chain: string[], textures: TextureLoader): Promise<Array<TintColor | null> | null>;
|
|
11
|
+
//#endregion
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { legacyTintsForChain };
|
|
1
|
+
export { t as legacyTintsForChain } from "../legacy-tints-l-541wgI.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as LightingProfileName, c as legacyFrontLight, i as LightingProfile, l as legacySideLight, n as LegacyLightSource, o as guiFrontLight, r as LightSource, s as guiSideLight, t as DiffuseLightSource, u as lightsForProfile } from "../lighting-
|
|
1
|
+
import { a as LightingProfileName, c as legacyFrontLight, i as LightingProfile, l as legacySideLight, n as LegacyLightSource, o as guiFrontLight, r as LightSource, s as guiSideLight, t as DiffuseLightSource, u as lightsForProfile } from "../lighting-DYkS-NlV.js";
|
|
2
2
|
export { DiffuseLightSource, LegacyLightSource, LightSource, LightingProfile, LightingProfileName, guiFrontLight, guiSideLight, legacyFrontLight, legacySideLight, lightsForProfile };
|
package/dist/render/lighting.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { DiffuseLightSource, LegacyLightSource, LightingProfile, guiFrontLight, guiSideLight, legacyFrontLight, legacySideLight, lightsForProfile };
|
|
1
|
+
export { t as DiffuseLightSource, n as LegacyLightSource, r as LightingProfile, i as guiFrontLight, a as guiSideLight, o as legacyFrontLight, s as legacySideLight, c as lightsForProfile } from "../lighting-f_oZTiOx.js";
|
package/dist/render/obj.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as ResourceLocator } from "../locator-jDbdUeTd.js";
|
|
2
|
-
import { a as ResourceManager } from "../manager-
|
|
3
|
-
import { i as TextureLoader } from "../loader-
|
|
4
|
-
import { r as ResolvedModel } from "../loader-
|
|
5
|
-
import { n as FloatTexture } from "../blend-
|
|
2
|
+
import { a as ResourceManager } from "../manager-Ey26G_3e.js";
|
|
3
|
+
import { i as TextureLoader } from "../loader-CrPTL0zk.js";
|
|
4
|
+
import { r as ResolvedModel } from "../loader-mGAKSRp6.js";
|
|
5
|
+
import { n as FloatTexture } from "../blend-DnogOnaU.js";
|
|
6
6
|
import { n as Vec3 } from "../vector-DRKRi4--.js";
|
|
7
|
-
import { i as RenderOptions } from "../renderer-
|
|
7
|
+
import { i as RenderOptions } from "../renderer-DZSDiXL0.js";
|
|
8
8
|
//#region src/render/obj.d.ts
|
|
9
9
|
interface ObjTriangle {
|
|
10
10
|
positions: [Vec3, Vec3, Vec3];
|
|
@@ -19,15 +19,15 @@ interface ParsedObj {
|
|
|
19
19
|
materialLibs: string[];
|
|
20
20
|
}
|
|
21
21
|
/** Parse OBJ text into triangles (polygon faces are fan-triangulated). */
|
|
22
|
-
declare function parseObj(text: string, flipV: boolean): ParsedObj;
|
|
22
|
+
export declare function parseObj(text: string, flipV: boolean): ParsedObj;
|
|
23
23
|
/** map_Kd texture per material name out of an MTL library. */
|
|
24
|
-
declare function parseMtl(text: string): Map<string, string>;
|
|
24
|
+
export declare function parseMtl(text: string): Map<string, string>;
|
|
25
25
|
/**
|
|
26
26
|
* Resolve a material name to a texture locator: `#key` and MTL map_Kd values
|
|
27
27
|
* go through the model's texture map (Forge binds materials that way); bare
|
|
28
28
|
* names fall back to a direct locator.
|
|
29
29
|
*/
|
|
30
|
-
declare function materialTexture(model: ResolvedModel, materials: Map<string, string>, material: string): ResourceLocator | null;
|
|
31
|
-
declare function renderObjModel(model: ResolvedModel, resources: ResourceManager, textures: TextureLoader, options: RenderOptions): Promise<FloatTexture>;
|
|
30
|
+
export declare function materialTexture(model: ResolvedModel, materials: Map<string, string>, material: string): ResourceLocator | null;
|
|
31
|
+
export declare function renderObjModel(model: ResolvedModel, resources: ResourceManager, textures: TextureLoader, options: RenderOptions): Promise<FloatTexture>;
|
|
32
32
|
//#endregion
|
|
33
|
-
export {
|
|
33
|
+
export {};
|
package/dist/render/obj.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { materialTexture, parseMtl, parseObj, renderObjModel };
|
|
1
|
+
export { t as materialTexture, n as parseMtl, r as parseObj, i as renderObjModel } from "../obj-BWsU8pYz.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as RenderedFrames, n as ItemRenderOutcome, r as PipelineSettings, t as ItemPipeline } from "../pipeline-
|
|
1
|
+
import { i as RenderedFrames, n as ItemRenderOutcome, r as PipelineSettings, t as ItemPipeline } from "../pipeline-DmLQ49DB.js";
|
|
2
2
|
export { ItemPipeline, ItemRenderOutcome, PipelineSettings, RenderedFrames };
|
package/dist/render/pipeline.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { ItemPipeline };
|
|
1
|
+
export { t as ItemPipeline } from "../pipeline-DV4hIRMp.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as clearFaceBuffer, c as drawTexturedTriangle, i as RowCursor, l as phpRound, n as FaceBuffer, o as compactFaceBuffer, r as RasterPoint, s as createFaceBuffer, t as DirtyRect } from "../rasterizer-
|
|
1
|
+
import { a as clearFaceBuffer, c as drawTexturedTriangle, i as RowCursor, l as phpRound, n as FaceBuffer, o as compactFaceBuffer, r as RasterPoint, s as createFaceBuffer, t as DirtyRect } from "../rasterizer-UBaTPhH4.js";
|
|
2
2
|
export { DirtyRect, FaceBuffer, RasterPoint, RowCursor, clearFaceBuffer, compactFaceBuffer, createFaceBuffer, drawTexturedTriangle, phpRound };
|