Skip to content

修复合成图导出的物品光效渲染 - #467

Merged
QiuYe-QAQ merged 1 commit into
1.21from
qy/fix-crafting-graph-export-glint
Nov 24, 2026
Merged

QiuYe-QAQ merged 1 commit into
1.21from
qy/fix-crafting-graph-export-glint

Conversation

@QiuYe-QAQ

Copy link
Copy Markdown
Member

What / 目的

修复 Minecraft 1.21.1 中合成图遇到带附魔光效的物品时导出失败的问题。日志里的 Rendering item 来自 BufferBuilder.ensureBuilding 抛出的 Not building!。

Implementation Details / 实现细节

离屏捕获此前让模型层和光效层使用同一个共享顶点缓冲,获取模型层时会结束光效层的批次。现在为 Minecraft 的五种 glint 渲染层分配独立缓冲,并在捕获结束或初始化失败时释放。

Outcome / 结果

PNG 整图渲染和 SVG 内嵌图标捕获共用修正后的缓冲配置,物品模型层和光效层可以同时写入顶点。

How Was This Tested / 测试方式

  • ./gradlew.bat --console=plain spotlessCheck compileJava jar 通过。
  • 使用 Minecraft 1.21.1 类运行顶点缓冲回归。旧配置复现 Not building!。新配置通过五种 glint 层、指南针光效和普通物品的四边形写入验证。
  • Prism Launcher 整合包内的 PNG 和 SVG 实机导出仍待验证。

@QiuYe-QAQ QiuYe-QAQ added 1.21 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. type: bugfix General bug fixes labels Nov 24, 2026
@github-actions github-actions Bot added the Tests: Passed Game Tests have passed on this PR label Nov 24, 2026
@QiuYe-QAQ
QiuYe-QAQ merged commit d9b0ac2 into 1.21 Nov 24, 2026
5 of 6 checks passed
@QiuYe-QAQ
QiuYe-QAQ deleted the qy/fix-crafting-graph-export-glint branch November 24, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.21 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. Tests: Passed Game Tests have passed on this PR type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant