适用于 Iris 的现代轻量级光影

RenderPearl 是一个极其轻量级的光影资源包,利用最新的 Iris 功能以及在各种图形驱动程序上的可选扩展,旨在为现代硬件提供愉悦的视觉效果和卓越的性能。
如果您想报告错误或提供反馈/建议,最好的方法是在 GitHub issue tracker 上打开一个问题。在修复错误和设计方面,我 heavily 依赖用户反馈。
本项目与 Mojang 新推出的同名渲染抽象层 "RenderRearl" (
com.mojang.RenderPearl) 无关
趣闻
该项目最初是作为 “Luracasmus Shaders”(这也是您可能见过它被称为 “LS RenderPearl” 的原因)的延续,但现代版本与原项目几乎没有共享任何代码。当所有部分都被替换时,同一个光影资源包是否仍然是同一个资源包,这个问题依然存在。
“RenderPearl” 这个名字灵感来源于基岩版 RenderDragon 引擎。
特性
LabPBR 1.3 合规性及材质数据
“Yes” 表示支持逐像素数据。
| LabPBR 1.3 必需组件 | 来自资源包 | 可配置的非标准通道 | 包含/程序化生成 |
|---|---|---|---|
| Albedo (基础色) | Yes | No | No |
| Smoothness (平滑度) | Yes, or as linear or perceptual roughness | Yes | Yes |
| f0/reflectance (反射率) | No | Constant | |
| Normal (法线) | Yes | No | Yes |
| LabPBR 1.3 可选组件 | 来自资源包 | 包含/程序化生成 |
|---|---|---|
| Hardcoded metal (硬编码金属) | No | No |
| Porosity (孔隙度) | No | No |
| Subsurface scattering (次表面散射) | No | Constant, only on translucent geometry |
| Emmissiveness (自发光性) | No | Yes |
| Ambient occlusion (环境光遮蔽) | Binary, per-block (from model) | Yes |
| Height (高度图) | No | No |
- 使用扭曲阴影贴图实现平滑、彩色的实时阴影和体积光。
- 使用结合 vanilla 光照和平均纹理颜色的光照列表以及基于物理的反射,实现彩色方块光源。
- 光线追踪的手持光源。
- 一系列高度优化的后处理效果,包括 FidelityFX Contrast Adaptive Sharpening、SMAA-MC 中的 1x SMAA、自动曝光以及各种色调映射算法的计算着色器实现。
- 可自定义的水波和水体透明度。
- 内置实用功能,如光照等级可视化和指南针叠加层。
模组和资源包兼容性
大多数内置 PBR 信息,包括光照颜色、材质法线和粗糙度,几乎完全是程序化生成的,因此应该能完美配合大多数资源包和模组工作。
在最新 Minecraft 版本中,对 Distant Horizons 和 Voxy 的集成已得到支持,但处于实验性阶段且非常基础。计划在未来的更新中提供完整支持。
对修改 Iris 着色管线模组的兼容性(例如 Chunks Fade In)处于实验性阶段,可能会出现问题,例如光影资源包无法编译。
要求
如果您有一台相当现代的非 macOS 设备,它可能支持您所需的一切,但您可能需要更新您的 Iris 和图形驱动程序。
- Iris 需支持以下功能:
BLOCK_EMISSION_ATTRIBUTECOMPUTE_SHADERSCUSTOM_IMAGESENTITY_TRANSLUCENTPER_BUFFER_BLENDINGSEPARATE_HARDWARE_SAMPLERSSSBO
- 图形驱动程序 需支持 GLSL 4.60.8+。
- Minecraft 的版本需在 RenderPearl 发行版列出的支持版本列表中。通常最新版本是最稳定的。
驱动支持
| OS | Drivers | Support |
|---|---|---|
| Linux | Mesa RadeonSI | Perfect |
| Linux | Nvidia | Very Good |
| Linux | Mesa Zink/RADV | Good |
| Linux | Mesa Zink/Nvidia | Unstable |
| Windows | AMD Adrenalin | Good |
| Windows | Nvidia Game Ready | Very Good |
仅测试了最新的稳定版本。所有其他驱动程序未经过测试。请报告发生的任何问题。
调整与兼容性菜单
默认配置以及通过配置文件选择的所有值都旨在满足光影资源包 要求 的所有系统上运行,尽管您可以通过更改某些选项来获得更高的性能和画质。请注意,某些值可能导致光影资源包无法编译,在这种情况下,您只需重置该选项即可。这些通常用红色 ⚠ 标记。
受实现限制的选项
这些选项的可用值与效果取决于你的显卡驱动。
-
**Light List Capacity(光照列表容量)**受限于 GPU 上每个工作组可用的本地数据共享(Local Data Share)内存量。根据你的 GPU 和显卡驱动,以及启用了「16/8-Bit Types」选项后的特性,你可能可以将此值设置为远高于通过配置文件所能选择的最大值(但如果光照列表未被完全填满,通常表现为灯光闪烁,则没有理由这样做,因为这会对性能产生负面影响)。
-
16/8-Bit Types 使用可选的 OpenGL/GLSL 扩展提供的半精度和/或四分之一精度数据类型,以减少寄存器、LDS 和 VRAM 的使用。性能影响因硬件和驱动而异,因为类型转换存在开销,但使用较小类型的操作可能显著更快。
-
Trinary Min/Max 使用可选的
AMD_shader_trinary_minmaxOpenGL/GLSL 扩展,在单个函数调用中执行三元最小值和最大值运算,从而可能生成更优的指令序列。建议尽可能使用此功能。 -
32×16-Bit Multiplication 使用可选的
INTEL_shader_integer_functionsOpenGL/GLSL 扩展提供的特殊函数,对 32 位整数与可在 16 位范围内表示的整数进行乘法运算,这比常规的 32 位乘法运算符可能更快。建议尽可能使用此功能。 -
Immutable Constants 将所有可设为不可变的着色器变量标记为常量,可能启用更好的优化。该功能是 GLSL 规范所要求的,但在某些显卡驱动上仍不受支持。建议尽可能使用此功能。
设计与模组开发 RenderPearl
RenderPearl 的源代码旨在可修改且可复用。我尽力按照最佳实践编写代码,但优先考虑性能而非可读性。如果你对其工作原理有任何疑问,欢迎在任何平台上联系我。
技术信息可以在 GitHub 仓库 中找到。
以下均由我创建的 RenderPearl 项目页面:
如果你想分发 RenderPearl,或者只是宣传它,我非常希望你能至少链接到上述其中一个页面,其中 Modrinth 是最重要的一个。
Modern, lightweight shaders for Iris

RenderPearl is an incredibly lightweight shader pack using the latest Iris features and optional extensions on various graphics drivers, aiming to deliver pleasant visuals with excellent performance on modern hardware.
If you want to report a bug or give feedback/suggestions, the best way to do so is by opening an issue on the GitHub issue tracker. I rely heavily on user feedback in bug fixing and design.
This project is NOT associated with Mojang's new rendering abstraction layer also named "RenderRearl" (
com.mojang.RenderPearl)
Trivia
This project started as a continuation of "Luracasmus Shaders" (which is why you might have seen it called "LS RenderPearl"), but modern versions share little to no code with the original project. The question remains as to whether the same shader pack remains throughout, when all parts are replaced.
The name "RenderPearl" is inspired by the Bedrock Edition RenderDragon engine.
Features
LabPBR 1.3 compliance & material data
"Yes" indicates support for per-texel data.
| LabPBR 1.3 required component | From resource pack | Configurable nonstandard channels | Included/procedural |
|---|---|---|---|
| Albedo | Yes | No | No |
| Smoothness | Yes, or as linear or perceptual roughness | Yes | Yes |
| f0/reflectance | No | Constant | |
| Normal | Yes | No | Yes |
| LabPBR 1.3 optional component | From resource pack | Included/procedural |
|---|---|---|
| Hardcoded metal | No | No |
| Porosity | No | No |
| Subsurface scattering | No | Constant, only on translucent geometry |
| Emmissiveness | No | Yes |
| Ambient occlusion | Binary, per-block (from model) | Yes |
| Height | No | No |
- Smooth, colored real-time shadows and volumetric light using distorted shadow mapping.
- Colored block light with physically based reflections using a light list combined with vanilla lighting and average texture color.
- Ray traced, per-hand hand light.
- A wide range of highly optimized post-processing effects, including compute shader implementations of FidelityFX Contrast Adaptive Sharpening, SMAA 1x from SMAA-MC, automatic exposure and a variety of tone mapping operators.
- Customizable waves and water opacity.
- Built-in utility features such as light level visualization and a compass overlay.
Mod & Resource Pack Compatibility
Most built-in PBR information, including light colors, material normals and roughness, are almost entirely procedurally generated and should therefore work perfectly with most resource packs and mods.
Integration with Distant Horizons and Voxy is supported on the latest Minecraft version, but experimental and very basic. Complete support is planned for a future update.
Support for mods that modify the Iris shader pipeline, such as Chunks Fade In, is experimental and may have issues, such as the shader pack failing to compile.
Requirements
If you have a decently modern non-macOS device it probably supports everything you need, but you might have to update your Iris and graphics drivers.
- Iris with support for features:
BLOCK_EMISSION_ATTRIBUTECOMPUTE_SHADERSCUSTOM_IMAGESENTITY_TRANSLUCENTPER_BUFFER_BLENDINGSEPARATE_HARDWARE_SAMPLERSSSBO
- Graphics drivers with support for GLSL 4.60.8+.
- Minecraft of a version that is listed as supported by the RenderPearl release. The latest supported version is usually the most stable.
Driver Support
| OS | Drivers | Support |
|---|---|---|
| Linux | Mesa RadeonSI | Perfect |
| Linux | Nvidia | Very Good |
| Linux | Mesa Zink/RADV | Good |
| Linux | Mesa Zink/Nvidia | Unstable |
| Windows | AMD Adrenalin | Good |
| Windows | Nvidia Game Ready | Very Good |
Only the latest stable versions are tested. All other drivers are untested. Please report any issues that occur.
Tuning & The Compatibility Menu
The default configuration and all values selectable with profiles are intended to work on all systems that meet the shader pack's Requirements, though you may be able to achieve higher performance and quality by changing some of these options. Beware that some values may cause the shader pack to not compile, in which case you simply have to reset the option. These are usually marked with a red ⚠.
Implementation-Limited Options
The usable values and effects of these options depend on your graphics drivers.
-
Light List Capacity is limited by the amount of Local Data Share memory usable per work group on your GPU. Depending on your GPU and graphics drivers, and the features enabled by the 16/8-Bit Types option, you may be able to set this significantly higher than the maximum value selectable with profiles (though there is no reason to do so if the light list isn't being filled completely, usually indicated by lights flickering, as it impacts performance negatively).
-
16/8-Bit Types uses optional OpenGL/GLSL extension-provided half- and/or quarter-sized data types to reduce register, LDS and VRAM usage. Performance impact varies depending on hardware and drivers, as conversion between types has a cost, but operations with smaller types can be significantly faster.
-
Trinary Min/Max performs trinary minimum and maximum operations in singular function calls using the optional
AMD_shader_trinary_minmaxOpenGL/GLSL extension, which may allow generation of more optimal instruction sequences. It's recommended to use this whenever possible. -
32×16-Bit Multiplication performs multiplication between 32-bit integers and integers in the 16-bit-representable range using special functions provided by the optional
INTEL_shader_integer_functionsOpenGL/GLSL extension, that may be faster than regular 32-bit multiplication operators. It's recommended to use this whenever possible. -
Immutable Constants marks all shader variables that can be immutable as constant, possibly enabling better optimizations. This feature is required by the GLSL specification, but still unsupported on some graphics drivers. It's recommended to use it whenever possible.
Design & Modding RenderPearl
RenderPearl's source code is intended to be modifiable and re-usable. It's written according to best practice to the best of my ability, but prioritizing performance over readability. If you have any questions about how it works, feel free to contact me on any platform.
Technical information can be found in the GitHub repository.
These are the only RenderPearl project pages made by me:
If you want to distribute RenderPearl, or just spread the word of it, I would greatly appreciate if you would link to at least one of them, Modrinth being the most important one.
下载 RenderPearl
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RenderPearl
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RenderPearl
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RenderPearl
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RenderPearl
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RenderPearl
下载 RenderPearl
下载 RenderPearl
下载 RenderPearl
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 RenderPearl
其他更改
- SMAA 对比度阈值默认值现在更高,且配置文件选择的质量选项(比下界合金更快的选项)现在更低。
已修复问题
- 在末地的一个后处理通道中使用了错误的光影,导致 SMAA、CAS 和颜色空间转换不正确。
- (Iris 错误已绕过)Minecraft 26.1+ 中的原版光照等级不正确,导致黑暗区域出现下溢。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
光影
以卓越的品质、细节和性能保留 Minecraft 的元素。
光影
[WIP] 一款基于 complementary reimagined 的游戏玩法光影包,具有带锐利阴影的彩色方块光
光影
一款注重游戏体验、风格半写实的光影包
光影
以卓越的品质、细节和性能改造 Minecraft 的视觉效果。
光影
适用于 Minecraft: Java Edition 的光影包。明亮、色彩丰富且与众不同。
光影
一款现代奇幻风格化光影包,拥有彩色光照和惊艳的视觉效果
评论 0
登录后参与评分
还没有评论,来抢沙发吧