要求
- Iris(或其分支如 Oculus)运行于 Minecraft 1.17 或更高版本。该光影包使用 GLSL 330 编写,针对 1.20–1.21.x 上的最新 Iris 版本。
- 支持 OpenGL 3.3 的任意显卡。
- Voxy(可选,0.2.4 或更高版本),用于远距离 LOD 地形。自动检测;无需配置。
- OptiFine 不是目标平台,且未经测试。
安装方法
- 将整个
Shader_Halcyon 文件夹(或其 zip 压缩包——确保 shaders/ 位于根目录)复制到 .minecraft/shaderpacks/ 中。
- 在游戏中:选项 → 视频设置 → 光影包,选择它并按 应用。
- 在 光影包设置 下选择一个预设(土豆 / 低 / 中 / 高 / 超高)。默认为“中”。
视觉效果
- 天空 – 完全程序化的渐变取代了原版天空穹顶:深邃的天顶蓝、朦胧苍白的地平线、向太阳方向最亮的橙紫色日落,以及深蓝色的夜晚。原版的太阳、月亮和星星被保留并叠加在顶层。
- 光照 – 温暖的阳光、阴影中的冷色调天蓝光、昏暗的蓝色月光以及橙色的火把光,均在线性 HDR 下计算并使用 ACES 曲线进行色调映射。保留了原版的平滑光照环境光遮蔽。
- 阴影 – 实时太阳和月亮阴影,带有扭曲的阴影贴图(玩家附近锐利,远处粗糙)。边缘通过最多八个旋转采样进行柔化,形成宽阔平滑的半影。阴影具有颜色:彩色玻璃会 tint 透过它的光线,而水会将光线 tint 为蓝色并将其聚焦为海底移动的光斑。太阳路径倾斜 30°,因此阴影总是以一定角度投射。
- 雾效 – 远处的地形融入其后方天空的确切颜色,从而消除渲染距离的边缘,而不是在一堵墙处戛然而止。下雨时雾气变浓,并且在水中、熔岩中和粉末雪中各有其独特的行为表现。
- 水体 – 水面实际在运动:翻滚的海浪使水体位移,同样的波浪驱动其着色,顶部有细微的涟漪。浅水区清澈呈绿松石色,深水区变暗且不透明,泡沫聚集在海岸线并随海浪起伏。通过菲涅尔效应反射天空(入射角越浅越强)、夜间极光以及太阳或月亮的镜像——一个柔和光带内的明亮核心,被波浪打碎。水下视角会有轻微晃动。
- 体积光柱 – 当地形、树木或云层部分遮挡太阳和月亮时,光线从它们周围发散出来。
- 极光 – 明亮的绿色至紫色光幕在晴朗的夜空中扫过并脉冲闪烁,并在水中倒映。强度可调节。
- 手持光源 – 手持火把、灯笼或任何其他光源会照亮周围环境。
- 植被 – 草、花、作物和树叶随风摇曳(雨中更明显,室内完全不摇),当太阳在树叶背后时,树叶会发光。
- 发光方块 – 岩浆、萤石、海晶灯、萤火之烛、蘑菇灯、火焰等少数方块发出自己的光并贡献辉光效果。
- 云 – 原版云朵,由光影包的太阳和天空颜色重新照明,并渐隐至地平线。
- 后处理 – 柔和的辉光、电影级色调映射、轻微的饱和度提升、可选的暗角效果,以及用于防止天空出现色彩条纹的抖动处理。
- 末地 – 在每个预设下,完全程序化的天空取代了原版的静态背景:紫色的虚空、紫色和青绿色的星云云、闪烁的星星,以及被光环绕的黑色日食环。低预设绘制简单的星云,中和高预设绘制基于噪声的星云,超高预设绘制扭曲且细节更丰富的星云,并带有第二个星场。日食是末地的光源——地形从其方向接受冷紫色的光照,水面反射整个天空,远处融入深紫色的薄雾中。
- 下界 – 由其生物群系雾效颜色照明,伴有浓厚的雾气。
- Voxy LOD – 远处的 LOD 地形使用与常规区块相同的阳光、环境光、雾效和水体反射进行着色。常规区块不再在原版渲染距离处淡出;雾效拉伸覆盖整个 LOD 距离,只有 LOD 的最远端融入天空中。
为何高效
- 前向渲染。 每个表面仅在绘制时被照亮一次。没有 G-buffer,也没有延迟光照;唯一的全屏通道是天空填充和最终通道。
- 单一渲染目标。 整个场景存在于单个紧凑的 HDR 缓冲区 (
R11F_G11F_B10F) 中——比典型的多缓冲区光影包占用更少的显存和带宽。
- 廉价的阴影。 默认 1536² 阴影贴图,采用 1、4 或 8 次硬件过滤采样。阴影坐标按顶点计算,对于背对光源或超出阴影距离的表面跳过查找,并对阴影几何体进行距离裁剪。彩色阴影增加一个额外的深度样本,以及仅在光线实际穿过半透明物体时的一个颜色样本;关闭彩色阴影时,半透明方块根本不会绘制到阴影贴图中。
- 末地和下界无阴影通道,因为那里根本没有投射太阳光影的东西。
- 无需模糊通道的辉光。 它复用场景缓冲区的 mip 链,而不是运行单独的下采样和模糊程序。
- 解析式效果。 天空、极光、末地星云、光斑、水波、泡沫和水体反射都是纯数学运算——无需噪声纹理、光线步进或屏幕空间反射。水深仅需一次深度查找,光斑在阴影通道中计算,因此受光表面为此不支付额外开销。
- 受限的体积光柱。 默认 10 次深度采样,且仅针对屏幕上实际存在的太阳或月亮附近的像素。
- LOD 保持低成本。 Voxy 地形完全跳过阴影贴图,改用天空光。
- 工作移至顶点着色器。 光照颜色、阴影位置、风力和水体涨落均按顶点计算。
- 所有预设使用相同的管线。 超高预设提高阴影分辨率、阴影距离和采样数,但不增加任何通道或缓冲区。
设置
| 菜单 |
选项 |
默认值 |
备注 |
| Lighting |
Shadows |
On |
性能开销最大。关闭此选项将完全禁用阴影渲染通道。 |
| Lighting |
Shadow Softening |
Soft (4) |
1、4 或 8 个阴影采样点。 |
| Lighting |
Coloured Shadows |
On |
透过彩色玻璃的 tinted light,水下的焦散效果。 |
| Lighting |
Shadow Resolution |
1536 |
1024–4096。 |
| Lighting |
Shadow Distance |
112 |
64–192 个方块。 |
| Lighting |
Sun Angle |
-30° |
太阳轨迹的倾斜角度。 |
| Lighting |
Torch Light Strength |
1.0 |
|
| Lighting |
Cave Brightness |
0.012 |
未照明区域的最小光照强度。 |
| Lighting |
Glowing Blocks |
On |
|
| Lighting |
Handheld Light |
On |
|
| Lighting |
Underwater Caustics |
On |
当启用 Coloured Shadows 时由水面投射;否则在摄像机位于水下时呈现较简单的效果。 |
| Atmosphere |
Fog Density |
0.6 |
设为 0 仅保留视距渐隐效果。 |
| Atmosphere |
Waving Plants |
On |
|
| Atmosphere |
Aurora / Strength |
On / 1.5 |
0.5–4.0。 |
| Atmosphere |
End Sky |
Nebula |
Simple、Nebula 或 Detailed。自定义末地天空始终开启。 |
| Atmosphere |
Light Shafts / Quality |
On / 10 |
6–24 个采样点。 |
| Water |
Water Waves |
On |
水面波动和涟漪。 |
| Water |
Shallow Water Opacity |
0.55 |
深水始终接近不透明。 |
| Post-processing |
Bloom / Bloom Strength |
On / 0.10 |
|
| Post-processing |
Exposure |
1.0 |
整体亮度。 |
| Post-processing |
Saturation |
1.1 |
|
| Post-processing |
Vignette |
On |
|
预设:Potato(无阴影、泛光、动画或天空效果;简单末地天空)、Low(1024 阴影,无泛光、光柱或彩色阴影;简单末地天空)、Medium(默认)、High(2048 阴影,128 个方块距离,8 采样点柔和阴影)、Ultra(4096 阴影,192 个方块距离,精细末地天空)。
已知限制
为保持资源包轻量,以下功能有意未包含:
- 无屏幕空间反射——水面仅反射天空,不反射地形。
- 无体积光或体积云。
- 不支持 PBR / LabPBR 资源包(法线贴图和镜面贴图将被忽略)。
- 无抗锯齿通道;如需抗锯齿,请使用更高分辨率或相关模组。
- 不支持 Distant Horizons(支持的 LOD 模组为 Voxy)。
- 阴影仅源自阴影距离内的物体;Voxy 的 LOD 模型既不会接收阴影,也不会投射阴影。
- 远距离 LOD 水面无波浪、深度着色或泡沫。
- 彩色阴影和水下焦散效果仅在阴影距离范围内生效。
- 仅当启用 Coloured Shadows 时,水面才会被绘制到阴影贴图里;关闭后,焦散效果仅在摄像机位于水下时出现。
- 末地和地狱不运行阴影通道;末地的日食光照仅为定向着色。
状态
版本 1.2。1.0 基础版已在 Minecraft 1.21.10 配合 Iris 确认可加载并渲染。1.1 新增内容(Voxy 支持、末地天空与光照、光柱、极光、手持光源)以及 1.2 版本添加的所有功能——水面波浪、深度着色与泡沫、彩色阴影与阴影投射焦散、8 采样点阴影滤波器、更强的反射极光以及末地天空质量等级——均在无法访问运行中游戏或 GLSL 编译器的情况下编写,且尚未在游戏中测试。如果程序编译失败,Iris 会显示错误信息(在光影资源包界面按 Ctrl+D 启用 debug mode 可查看完整日志);Voxy 会在游戏日志中报告其自身补丁的问题。
目录结构
Shader_Halcyon/
├── shaderpack.md
└── shaders/
├── shaders.properties 管线配置、选项菜单、预设
├── block.properties 哪些方块会摆动、发光或被视为水体
├── lang/en_us.lang 选项名称
├── lib/ 所有实际的光影代码
│ ├── settings.glsl 所有可调参数
│ ├── sky.glsl skyfx.glsl lighting.glsl fog.glsl water.glsl distort.glsl
│ ├── waving.glsl uniforms.glsl voxy.glsl
│ └── program/ solid, water, sky, clouds, shadow, deferred, final, voxy_*
├── *.vsh / *.fsh 主世界程序(lib/program 的薄封装层)
├── voxy.json voxy_*.glsl Voxy LOD 着色(也存在于每个维度文件夹中)
├── world-1/ 地狱程序
└── world1/ 末地程序
Requirements
- Iris (or a fork such as Oculus) on Minecraft 1.17 or newer. The pack is written in GLSL 330 and targets current Iris releases on 1.20–1.21.x.
- Any GPU with OpenGL 3.3 support.
- Voxy (optional, 0.2.4 or newer) for long-distance LOD terrain. Detected automatically; nothing to configure.
- OptiFine is not a target and is untested.
Installation
- Copy the whole
Shader_Halcyon folder (or a zip of it — shaders/ must be at the top level) into .minecraft/shaderpacks/.
- In game: Options → Video Settings → Shader Packs, select it and press Apply.
- Pick a preset under Shader Pack Settings (Potato / Low / Medium / High / Ultra). Medium is the default.
What it looks like
- Sky – A fully procedural gradient replaces the vanilla sky dome: deep blue zenith, pale hazy horizon, orange-to-violet sunsets that glow brightest towards the sun, and dark blue nights. The vanilla sun, moon and stars are kept and layered on top.
- Lighting – Warm sunlight, cool sky-blue ambient light in the shade, dim blue moonlight and orange torch light, all computed in linear HDR and tonemapped with an ACES curve. Vanilla smooth-lighting ambient occlusion is preserved.
- Shadows – Real-time sun and moon shadows with a distorted shadow map (sharp near the player, coarser far away). Edges are softened with up to eight rotated samples for a wide, smooth penumbra. Shadows are coloured: stained glass tints the light that passes through it, and water tints it blue and focuses it into moving caustics on the sea floor. The sun path is tilted 30° so shadows always fall at an angle.
- Fog – Distant terrain fades into the exact colour of the sky behind it, so the edge of the render distance disappears instead of ending in a wall. Fog thickens in rain, and has its own behaviour underwater, in lava and in powder snow.
- Water – The surface actually moves: a rolling swell displaces the water and the same waves drive its shading, with fine ripples on top. Shallow water is clear and turquoise, deep water turns dark and opaque, and foam gathers along the shoreline and breathes with the swell. It reflects the sky by fresnel (stronger at shallow angles), the aurora at night, and a mirror image of the sun or moon — a bright core inside a soft streak that the waves break up. Submerged, the view wobbles slightly.
- Light shafts – Rays fan out around the sun and moon when terrain, trees or clouds partly cover them.
- Aurora – Bright green-to-violet curtains of light sweep and pulse across clear night skies, and are mirrored in water. Strength is adjustable.
- Handheld light – Holding a torch, lantern or any other light source lights up your surroundings.
- Foliage – Grass, flowers, crops and leaves sway in the wind (more in rain, not at all indoors), and leaves glow when the sun is behind them.
- Glowing blocks – Lava, glowstone, sea lanterns, froglights, shroomlights, fire and a few others emit their own light and feed the bloom.
- Clouds – Vanilla clouds, relit by the pack's sun and sky colours and faded into the horizon.
- Post-processing – Soft bloom, filmic tonemapping, a mild saturation boost, an optional vignette, and dithering to prevent banding in the sky.
- The End – A fully procedural sky replaces the vanilla static at every preset: a violet void, purple and teal nebula clouds, twinkling stars, and a black eclipse ringed with light. Low presets draw a simple nebula, Medium and High a noise-based one, Ultra a warped, more detailed one with a second star field. The eclipse is the End's light source — terrain is lit from its direction in cold violet, water mirrors the whole sky, and distance fades into a dark purple haze.
- The Nether – Lit from its biome fog colour, with thick fog.
- Voxy LODs – Distant LOD terrain is shaded with the same sunlight, ambient light, fog and water reflections as regular chunks. Regular chunks no longer fade out at the vanilla render distance; fog is stretched over the whole LOD distance and only the far edge of the LODs melts into the sky.
Why it is fast
- Forward shaded. Every surface is lit once, when it is drawn. There is no G-buffer and no deferred lighting; the only full-screen passes are the sky fill and the final pass.
- One render target. The whole scene lives in a single compact HDR buffer (
R11F_G11F_B10F) — less video memory and bandwidth than a typical multi-buffer pack.
- Cheap shadows. A 1536² shadow map by default, sampled with 1, 4 or 8 hardware-filtered taps. Shadow coordinates are computed per vertex, the lookup is skipped for surfaces facing away from the light or beyond shadow distance, and shadow geometry is culled to the shadow distance. Coloured shadows add one extra depth sample, plus one colour sample only where light actually passed through something translucent; with them off, translucent blocks are not drawn into the shadow map at all.
- No shadow pass in the Nether or the End, where nothing casts sun shadows anyway.
- Bloom without blur passes. It reuses the scene buffer's mip chain instead of running separate downsample and blur programs.
- Analytic effects. The sky, aurora, End nebula, caustics, water waves, foam and water reflections are pure maths — no noise textures, no ray marching, no screen-space reflections. Water depth costs a single depth lookup, and the caustics are computed in the shadow pass, so lit surfaces pay nothing extra for them.
- Bounded light shafts. 10 depth samples by default, and only for pixels near a sun or moon that is actually on screen.
- LODs stay cheap. Voxy terrain skips the shadow map entirely and uses skylight instead.
- Work moved to the vertex shader. Light colours, shadow positions, wind and the water swell are all per vertex.
- Same pipeline at every preset. Ultra raises shadow resolution, shadow distance and sample counts, but adds no passes and no buffers.
Settings
| Menu |
Option |
Default |
Notes |
| Lighting |
Shadows |
On |
Biggest performance cost. Off also disables the shadow pass entirely. |
| Lighting |
Shadow Softening |
Soft (4) |
1, 4 or 8 shadow samples. |
| Lighting |
Coloured Shadows |
On |
Tinted light through stained glass, caustics under water. |
| Lighting |
Shadow Resolution |
1536 |
1024–4096. |
| Lighting |
Shadow Distance |
112 |
64–192 blocks. |
| Lighting |
Sun Angle |
-30° |
Tilt of the sun's path. |
| Lighting |
Torch Light Strength |
1.0 |
|
| Lighting |
Cave Brightness |
0.012 |
Minimum light in unlit areas. |
| Lighting |
Glowing Blocks |
On |
|
| Lighting |
Handheld Light |
On |
|
| Lighting |
Underwater Caustics |
On |
Cast by the water surface when Coloured Shadows is on; otherwise a simpler effect while the camera is underwater. |
| Atmosphere |
Fog Density |
0.6 |
0 leaves only the render-distance fade. |
| Atmosphere |
Waving Plants |
On |
|
| Atmosphere |
Aurora / Strength |
On / 1.5 |
0.5–4.0. |
| Atmosphere |
End Sky |
Nebula |
Simple, Nebula or Detailed. The custom End sky is always on. |
| Atmosphere |
Light Shafts / Quality |
On / 10 |
6–24 samples. |
| Water |
Water Waves |
On |
Surface movement and ripples. |
| Water |
Shallow Water Opacity |
0.55 |
Deep water is always nearly opaque. |
| Post-processing |
Bloom / Bloom Strength |
On / 0.10 |
|
| Post-processing |
Exposure |
1.0 |
Overall brightness. |
| Post-processing |
Saturation |
1.1 |
|
| Post-processing |
Vignette |
On |
|
Presets: Potato (no shadows, bloom, animation or sky effects; simple End sky), Low (1024 shadows, no bloom, light shafts or coloured shadows; simple End sky), Medium (default), High (2048 shadows, 128 blocks, 8-sample soft shadows), Ultra (4096 shadows, 192 blocks, detailed End sky).
Known limitations
These were left out on purpose to keep the pack light:
- No screen-space reflections — water reflects the sky only, not terrain.
- No volumetric light or volumetric clouds.
- No PBR / LabPBR resource pack support (normal and specular maps are ignored).
- No anti-aliasing pass; use a higher resolution or a mod if you want it.
- No Distant Horizons support (Voxy is the supported LOD mod).
- Shadows only come from objects within the shadow distance; Voxy LODs are never shadowed and do not cast shadows.
- Distant LOD water has no waves, depth colouring or foam.
- Coloured shadows and water caustics only reach as far as the shadow distance.
- Water is only drawn into the shadow map with Coloured Shadows on; with it off, caustics only appear while the camera itself is underwater.
- The End and the Nether run no shadow pass; the eclipse light in the End is directional shading only.
Status
Version 1.2. The 1.0 base was confirmed loading and rendering on Minecraft 1.21.10 with Iris. The 1.1 additions (Voxy support, the End sky and lighting, light shafts, aurora, handheld light) and everything added in 1.2 — water waves, depth colouring and foam, coloured shadows and shadow-cast caustics, the 8-sample shadow filter, the stronger reflected aurora and the End sky quality levels — was written without access to a running game or a GLSL compiler and has not yet been tested in game. If a program fails to compile, Iris will show the error (enable debug mode with Ctrl+D on the shader pack screen for the full log); Voxy reports problems with its own patches in the game log.
Layout
Shader_Halcyon/
├── shaderpack.md
└── shaders/
├── shaders.properties pipeline config, option menu, presets
├── block.properties which blocks wave, glow, or are water
├── lang/en_us.lang option names
├── lib/ all the actual shader code
│ ├── settings.glsl every tweakable value
│ ├── sky.glsl skyfx.glsl lighting.glsl fog.glsl water.glsl distort.glsl
│ ├── waving.glsl uniforms.glsl voxy.glsl
│ └── program/ solid, water, sky, clouds, shadow, deferred, final, voxy_*
├── *.vsh / *.fsh overworld programs (thin wrappers around lib/program)
├── voxy.json voxy_*.glsl Voxy LOD shading (also in each dimension folder)
├── world-1/ Nether programs
└── world1/ End programs
评论 0
登录后参与评分
还没有评论,来抢沙发吧