Frappé
为 Fabric Renderer API 提供的 Khronos 风格渲染扩展。
为什么?
由于 Sodium 在 Fabric 模组社区和整合包中的广泛存在,许多重度依赖渲染的模组不得不使用 Mixin 来注入 Indigo 和 Sodium。颇具讽刺意味的是,尽管 Fabric Renderer API(简称 FRAPI)已存在并服务于 Sodium 等模组,但其 API 受到严重限制,几乎仅对复杂的方块模型有用。因此,Frappé 应运而生,旨在提供一个统一且强大的渲染器 API。
如何工作?
引入 Frappé 扩展。
Frappé 扩展是额外的、可选的 API,渲染器可以选择实现它们。然而,其他模组可以为渲染器尚未支持的功能添加支持(例如 Sodium-Frappé 兼容性),这也是 Frappé 相较于传统渲染器实现和扩展的主要优势。
Frappé 的扩展系统深受 Khronos Group 的 OpenGL 和 Vulkan 扩展 API 的启发。
换句话说,“查询扩展进入,扩展 API 输出。”
将此 PR 到 FRAPI!
不,这远远超出了其范围。主要关注点是可维护性和用例,而 FRAPI 在出现破坏性变更时已经很难维护了。请勿打扰 FRAPI 开发人员。
这会添加到 Sodium、Iris 等其他模组中吗?
不,绝对不可能。Frappé 的 API 不在单个渲染器模组的范围内,且 Mocha——Frappé 默认的 Indigo 和 Sodium 实现——采用 MPL-2.0 许可证授权。除非在劳动力和许可方面达成协议,否则 Mocha/Frappé 将保持为一个独立的模组。
致谢
glsl-transformer by douira
许可证
Frappé 和 Mocha: MPL-2.0
glsl-transformer: AGPL-3.0 以及 licenses/glsl-transformer.md 中的额外许可授予
Frappé
Khronos-inspired rendering extensions for the Fabric Renderer API.
Why?
Due to Sodium's omnipresence in the Fabric modding community and in modpacks, many rendering-heavy
mods resort to using Mixin on Indigo and Sodium. Mockingly, Fabric Renderer API (also called FRAPI)
exists for mods like Sodium, but its API is heavily limited and almost exclusively useful for
complicated block models. Thus, Frappé was borne out of the desire for a cohesive, powerful renderer
API.
How?
Enter Frappé extensions.
Frappé extensions are additional, optional APIs that renderers may opt into implementing.
However, other mods may add support for features that renderers do not support (e.g. Sodium-Frappé
Compatibility), and this is the primary advantage Frappé has over traditional renderer
implementations and extensions.
Frappé's extension system is heavily inspired by Khronos Group's OpenGL and Vulkan extension APIs.
In other words, "Extension query goes in, extension API comes out."
PR this into FRAPI!
No, this is far out of scope. The primary concerns are maintainability and use-case, and FRAPI is
already quite difficult to maintain when it breaks. Please do not bother the FRAPI developers.
Will this be added to Sodium? Iris? etc.?
No, absolutely not. Frappé's API is not in scope for individual renderer mods, and Mocha—Frappé's
default Indigo and Sodium implementation—is licensed MPL-2.0. Unless an agreement is made on labor
and licensing, Mocha/Frappé will remain a separate mod.
Attribution
glsl-transformer by douira
Licenses
Frappé and Mocha: MPL-2.0
glsl-transformer: AGPL-3.0 and the additional license grant in licenses/glsl-transformer.md
评论 0
登录后参与评分
还没有评论,来抢沙发吧