Repository navigation
修复合成图导出的物品光效渲染 - #467
Merged
Merged
修复合成图导出的物品光效渲染#467
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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通过。Not building!。新配置通过五种 glint 层、指南针光效和普通物品的四边形写入验证。