远古水晶
创意由 Quelchi 提供。
还原远古时期末影水晶的外观。
较新版本更改了实体渲染管线中双面光照的方式(PER_FACE_LIGHTING)。末影水晶受到的影响最大。它们由两个嵌套旋转的玻璃外壳组成,绘制时未启用背面剔除,因此你看到的画面中约有一半是外壳的内侧,而内侧的着色效果出现了反转。这导致水晶看起来不对劲。
本模组恢复了旧的着色方式。它不会修改任何纹理、模型或游戏玩法。
功能
- 末影水晶的渲染效果与 1.21.9 版本更新前一致
- 仅客户端生效
- 仅影响末影水晶。其他所有实体均保持原版着色效果。
- 可通过
/oldcrystals 命令在游戏内切换,无需重启
- 仅需 Fabric API
工作原理
该模组注册了一个原版 entity_cutout_no_cull 渲染管线的副本,并移除了其中的 PER_FACE_LIGHTING 着色器定义,然后通过单个 Mixin 将其替换到末影水晶上。它在原版的着色器上运行,因此没有自定义 GLSL,也没有可测量的性能开销。
配置
config/oldcrystals.json 包含一个选项 legacyCrystals,默认为 true。游戏内的 /oldcrystals 命令具有相同的功能,并会立即将更改写入文件。
Old Crystals
Credit goes to Quelchi for the idea.
Brings back the old look of End Crystals.
Newer versions changed how the entity render pipeline lights double sided faces
(PER_FACE_LIGHTING). End Crystals get the worst of it. They are two nested,
spinning glass shells drawn without backface culling, so roughly half of what
you see is the inside of a shell, and that inside shading came out inverted.
The crystal ends up looking wrong.
This mod puts the old shading back. It does not touch textures, models or gameplay.
Features
- End Crystals render like they did before the 1.21.9 update
- Client side only
- Only End Crystals are affected. Every other entity keeps vanilla shading.
- Toggle in game with
/oldcrystals without restarting
- Needs nothing but Fabric API
How it works
The mod registers a copy of the vanilla entity_cutout_no_cull render pipeline
with the PER_FACE_LIGHTING shader define removed, then swaps it in for End
Crystals through a single mixin. It runs on vanilla's own shaders, so there is
no custom GLSL and no measurable performance cost.
Config
config/oldcrystals.json has one option, legacyCrystals, which defaults to
true. /oldcrystals does the same thing in game and writes the change to the
file right away.
评论 0
登录后参与评分
还没有评论,来抢沙发吧