Conversation
26.2 的 EntityRenderState 可复用:物品栏提交阶段创建的 INVENTORY snapshot 会在 GUI 画中画阶段(inventory session 已 finish)被再次提交,导致 InventoryRenderSession.enqueue 抛 IllegalStateException。 route 中对 INVENTORY 且未 active 的提交回退原版渲染。
|
有个问题 车万女仆替换MMD模型以后,重启游戏就会变回默认模型 |
- 新增 PictureInPictureRendererMixin:捕获 PIP 正交投影,标记 PIP 渲染状态 - 新增 GuiEntityRendererMixin:在 PIP 实体提交阶段(renderToTexture)开启/结束 物品栏局部队列,此时 outputColorTextureOverride 指向 PIP 离屏纹理 - MmdGpuDrawDevice.draw 优先使用 RenderSystem.outputColorTextureOverride 作为 绘制目标(PIP 期间为离屏纹理,否则回退主 target) - CameraMatrices 在 PIP 状态下使用正交投影 + 单位 ModelView(顶点已含预览变换) - 新增 MmdPipState 记录 PIP 渲染状态与投影
Author
车万女仆支持26.2吗 |
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.
简单适配了一下26.2
只动了fabric,基于1.21.5分支修改得到
只测试了模型渲染功能