NeoLux
温暖的低角度阳光映照在静谧的阴影中,柔和的体积云与倒映着岸边的深色水面。这是一款为 Iris 设计的延迟渲染光影包,追求宁静、电影般的视觉效果,而非罗列大量特效。
一个光影包是否好看,主要取决于光照效果,而非特效列表的数量。Neolux 使用一套基于太阳高度角的自定义调色板来渲染主世界。正午时分,天穹呈现深蓝色,地平线则较为苍白。到了傍晚,光线变得温暖而低垂,向四周扩散,天空其余部分则转为灰暗且静止。
阳光强烈,阴影微弱,且阴影会损失部分色彩。受光的墙面与其背光面呈现出截然不同的质感,而不是同一表面被染上更蓝的色调;花田在阳光实际照射到的地方保持其原有色彩。
原版天空颜色无法承载这种表现。Minecraft 报告的雾色甚至会随着相机朝向的变化而改变,因此当你转身时,整个天空都会变色。下界和末地则拥有独立的视觉风格:下界雾气带有生物群系特有的色彩,末地天空则是深邃的紫色,伴有星云、星辰和末地闪烁光效的面纱。
安装
- 安装 Iris。
- 将 NeoLux 的 zip 文件放入
.minecraft/shaderpacks/ 目录。
- 在游戏中:选项 -> 视频设置 -> 光影包 -> NeoLux。
无需资源包、无需模组、无需编辑配置文件。所有设置均在光影选项界面中完成。
包含内容
| 区域 |
实现方式 |
| 光照 |
太阳光和环境光随太阳高度角变化,黄金时刻光线温暖,方块面根据朝向产生阴影,可选的有色方块光源 |
| 天空 |
深蓝天穹、苍白地平线、低太阳周围的暖色散射、程序化星空、流星、寒冷生物群系中的极光、雨后彩虹、末地专属天空 |
| 云层 |
程序化体积层,面向太阳照明,边缘明亮核心较暗,水面有倒影,阴影在地面上漂移 |
| 阴影 |
扭曲的阴影贴图,旋转环上的硬件过滤采样,受染色玻璃和水的影响着色 |
| 植物 |
像它们生长的地面一样受光,光线包裹植物并在逆光时穿透,随风摆动 |
| 水体 |
深色且具有反射性,两层具有视差效果的波浪,屏幕空间反射(背景为天空和云朵),锐利的太阳耀斑,折射、模糊和焦散效果(均为可选) |
| 材质 |
发光的矿石和光源,镜像周围环境的冰和玻璃,带框或无框及条纹的玻璃,来自 labPBR 资源包的法线和镜面贴图 |
| 环境光遮蔽 (AO) |
屏幕空间,黄金角采样,4 到 24 次采样 |
| 光柱 |
通过阴影贴图进行体积光行进计算,6 到 40 步 |
| 雾效 |
晴朗天气下仅轻微触及前一百个方块的空中薄雾,夜间和雨天变浓,下界生物群系色彩的雾气 |
| 天气 |
雨水使开阔地面变得更暗、饱和度更高,伴有太阳耀斑和倒映的天空,水坑,雨滴涟漪,照亮大地的闪电 |
| Distant Horizons |
LOD 地形和水体,像世界其他部分一样受光、产生阴影和雾效 |
| 后期处理 |
柔和辉光泛光、暗部眼适应、五种色调映射曲线、镜头光晕、色彩分级、FXAA 或 TAA、暗角、噪点 |
质量配置
配置按钮位于选项界面的顶部。共六个等级,从“根本不应该运行光影的设备”到“性能过剩的设备”。
| 配置 |
阴影贴图 |
过滤 |
AO 采样数 |
光柱 |
反射步数 |
波浪八度 |
云层步数 |
| 土豆 (Potato) |
关闭 |
- |
关闭 |
关闭 |
关闭 |
关闭 |
4 |
| 低 (Low) |
1024 / 96 格 |
1 |
4 |
关闭 |
关闭 |
1 |
6 |
| 中 (Medium) |
2048 / 128 格 |
2 |
8 |
10 |
16 |
2 |
8 |
| 高 (High) |
2048 / 160 格 |
2 |
12 |
14 |
22 |
3 |
10 |
| 超高 (Ultra) |
3072 / 224 格 |
3 |
16 |
20 |
30 |
4 |
14 |
| 极限 (Extreme) |
4096 / 320 格 |
4 |
24 |
40 |
56 |
4 |
20 |
每个配置都会写入完整的一组性能相关选项,而不仅仅是它更改的选项。从“极限”切换到“低”不会留下任何昂贵的设置残留,这通常是配置按钮悄悄欺骗你的方式。
颜色、雾效和曝光度故意不包含在配置中。这些属于个人喜好,而非性能问题,切换配置不应撤销你花费数小时进行的色彩分级。有色光和 TAA 默认关闭,也不属于任何配置的一部分。
选项
共 113 项,分布在十个页面中,支持英语和德语。
阴影: 分辨率、距离、过滤环、柔化程度、偏置、着色强度、太阳路径旋转。
光照: 阳光、环境光、方块光和夜间亮度分别独立调节,因此你可以拥有漆黑的夜晚而不必让洞穴也一片漆黑。此外还支持火把暖色调、最低环境光强度、天空光衰减、阴影中颜色丢失的程度、彩色方块光、遮挡强度、半径和采样数,以及光线体积(god rays)的强度和品质。
天空: 亮度、太阳和月亮亮度、太阳周围的光晕、星星的亮度和密度、流星、彩虹、寒冷生物群系或始终存在的极光,以及末地天空。
云层: NeoLux、原版或无云。覆盖范围、高度、厚度、品质、速度、亮度、水面是否反射云层,以及它们投射的阴影。
雾气: 密度、保持近景清晰的起始距离、霾的强度和高度、水下能见度,以及下界雾效。
水体: 反射范围和清晰度作为独立控制项、折射、模糊和焦散、波高、细节、粗糙度和视差、固定深蓝色或生物群系颜色、不透明度、吸收率、太阳耀斑,以及水下的轻微晃动效果。
世界与几何体: 植物和叶子的摇曳、风速、湿润表面、水坑、雨滴涟漪及雨中的反射、闪电闪光、玻璃样式、Alpha 裁剪,以及方块选择轮廓的宽度和强度。
后处理: 五种色调映射曲线(无、ACES、Reinhard、Uncharted 2、Soft)、曝光度、眼睛自适应及其限制和速度、泛光(Bloom)的强度、阈值、半径和层级数、FXAA 或 TAA、锐化、暗角,以及镜头光晕。
色彩与风格: 饱和度、鲜艳度、对比度、色温、胶片颗粒、色差。
材质: 发光矿石和光源及其发光强度、冰和玻璃上的反射,以及 labPBR 资源包支持。
要求
- Iris,适用于 Minecraft 1.17 或更高版本。在 Minecraft 26.3 和 Iris 1.11 上开发并测试。
- 支持 GLSL 1.20 和帧缓冲对象(Framebuffer Objects)的显卡,实际上这意味着过去十年内的任何显卡都符合要求。
- 彩色光照功能还需要计算着色器(Compute Shaders,OpenGL 4.3)。如果没有计算着色器,该选项将保持禁用状态,且不会引起其他变化。
- Distant Horizons 为可选安装。将其与 Iris 一同安装后,NeoLux 也会照亮远处的地形。
从 1.1.0 版本开始不再支持 OptiFine。天空和光照通过仅由 Iris 提供的统一变量来区分主世界和其他维度,如果没有 Iris,所有内容都会回退到原版颜色。
Minecraft 1.17 是最低要求,因为方块选择轮廓被绘制为加宽的线四边形(line quads),这种技术仅在该版本及以上存在。
关于源代码
该光影使用纯 GLSL 1.20 编写,没有外部包含文件,也不自带纹理:云层和水表面均为程序化生成。如果你想了解某项功能的工作原理,各个渲染通道(passes)的名称已标明其用途,缓冲区布局记录在 lib/common.glsl 文件的顶部。源代码托管于 Codeberg。
采用 GPL-3.0 许可证授权。欢迎 Fork,取你所需部分,并保持开源。
NeoLux
Warm, low sunlight against quiet shade, soft volumetric clouds and dark water that mirrors the shore. A deferred shaderpack for Iris that goes for a calm, cinematic look rather than a long list of effects.
What makes a shaderpack look good is mostly the light, not the effect list. NeoLux runs the overworld on a palette of its own that follows the height of the sun. At noon the dome is a deep blue over a pale horizon. Towards evening the light turns warm and low, spreads out around the sun, and the rest of the sky goes grey and still.
The sun is strong and the shade is weak, and the shade loses part of its color. A sunlit wall and its shaded side read as two different things instead of the same surface in a bluer tint, and a field of flowers keeps its color where the sun actually hits it.
The vanilla sky colors cannot carry that. The fog color Minecraft reports even turns with the direction the camera faces, so the whole sky changes tint whenever you turn around. The Nether and the End get a look of their own instead: haze in the color of the Nether biome, and a dark violet End sky with veils of nebula, stars and End flashes.
Installation
- Install Iris.
- Drop the NeoLux zip into
.minecraft/shaderpacks/.
- In game: Options -> Video Settings -> Shader Packs -> NeoLux.
No resource pack, no mod, no config file to edit. Everything is in the shader options screen.
What is in it
| Area |
Implementation |
| Light |
Sun and sky light follow the height of the sun, warm at golden hour, block faces shaded by orientation, optional colored block light |
| Sky |
Deep blue dome, pale horizon, warm scattering around a low sun, procedural stars, shooting stars, aurora in cold biomes, a rainbow after the rain, a sky of its own for the End |
| Clouds |
Procedural volumetric layer lit towards the sun, bright at the rim and darker in the core, mirrored by water, shadows that drift across the land |
| Shadows |
Distorted shadow map, hardware filtered samples on a rotated ring, tinted by stained glass and water |
| Plants |
Lit like the ground they grow out of, light wraps around them and shines through against the sun, wind moves them |
| Water |
Dark and mirroring, two layers of waves with parallax, screen space reflections with sky and clouds behind them, a sharp sun glint, refraction, blur and caustics as options |
| Materials |
Glowing ores and light sources, ice and glass that mirror their surroundings, glass with or without frame and streaks, normal and specular maps from labPBR resource packs |
| Ambient occlusion |
Screen space, golden angle sampling, 4 to 24 taps |
| Light shafts |
Volumetric light marched through the shadow map, 6 to 40 steps |
| Fog |
Aerial haze that barely touches the first hundred blocks on a clear day, thicker at night and in rain, haze in the color of the Nether biome |
| Weather |
Rain soaks open ground darker and more saturated, with a sun glint and a mirrored sky, puddles, raindrop rings, lightning that lights up the land |
| Distant Horizons |
LOD terrain and water lit, shaded and fogged like the rest of the world |
| Post |
Soft glow bloom, eye adaptation in the dark, five tonemap curves, lens flare, grading, FXAA or TAA, vignette, grain |
Quality profiles
The profile button sits at the top of the options screen. Six steps, from a machine that should not be running shaders at all to one that has cycles to burn.
| Profile |
Shadow map |
Filter |
AO taps |
Light shafts |
Reflection steps |
Wave octaves |
Cloud steps |
| Potato |
off |
- |
off |
off |
off |
off |
4 |
| Low |
1024 / 96 blocks |
1 |
4 |
off |
off |
1 |
6 |
| Medium |
2048 / 128 blocks |
2 |
8 |
10 |
16 |
2 |
8 |
| High |
2048 / 160 blocks |
2 |
12 |
14 |
22 |
3 |
10 |
| Ultra |
3072 / 224 blocks |
3 |
16 |
20 |
30 |
4 |
14 |
| Extreme |
4096 / 320 blocks |
4 |
24 |
40 |
56 |
4 |
20 |
Each profile writes the complete set of performance relevant options, not just the ones it changes. Switching from Extreme down to Low leaves nothing expensive behind, which is the usual way profile buttons quietly lie to you.
Color, fog and exposure are deliberately left out of the profiles. Those are taste, not performance, and a profile switch should not undo an evening of grading. Colored light and TAA are off by default and not part of any profile either.
Options
113 of them, across ten pages, in English and German.
Shadows: resolution, distance, filter rings, softness, bias, tint strength, sun path rotation.
Lighting: sunlight, ambient, block light and night brightness scale separately, so you can have dark nights without dark caves. Plus torch warmth, minimum ambient, sky light falloff, how much color the shade loses, colored block light, occlusion strength, radius and sample count, and light shaft strength and quality.
Sky: brightness, sun and moon brightness, the glow around the sun, stars with their own brightness and density, shooting stars, the rainbow, aurora in cold biomes or always, and the End sky.
Clouds: NeoLux, vanilla or none. Cover, height, thickness, quality, speed, brightness, whether water reflects them, and the shadows they cast.
Fog: density, an onset distance that keeps the near field clear, haze strength and height, underwater visibility, and the Nether haze.
Water: reflection range and sharpness as separate controls, refraction, blur and caustics, wave height, detail, roughness and parallax, a fixed deep blue or the biome color, opacity, absorption, the sun glint, and a slight wobble underwater.
World and geometry: waving plants and leaves, wind speed, wet surfaces, puddles, raindrop rings and reflections in rain, lightning flashes, the glass style, alpha cutout, and the width and strength of the block selection outline.
Post processing: five tonemap curves (none, ACES, Reinhard, Uncharted 2, Soft), exposure, eye adaptation with its limit and speed, bloom with strength, threshold, radius and level count, FXAA or TAA, sharpening, vignette, and lens flare.
Color and style: saturation, vibrance, contrast, color temperature, film grain, chromatic aberration.
Materials: glowing ores and light sources and how strong they glow, reflections on ice and glass, and labPBR resource packs.
Requirements
- Iris on Minecraft 1.17 or newer. Developed and tested on Minecraft 26.3 with Iris 1.11.
- A GPU that can do GLSL 1.20 with framebuffer objects, which in practice means anything from the last decade.
- Colored light additionally needs compute shaders (OpenGL 4.3). Without them the option stays off and nothing else changes.
- Distant Horizons is optional. Install it next to Iris and NeoLux lights its far terrain as well.
OptiFine is no longer supported from 1.1.0 on. The sky and the light tell the overworld apart from the other dimensions through a uniform only Iris provides, and without it everything falls back to the vanilla colors.
1.17 is the floor because the block selection outline is drawn as widened line quads, a technique that only exists from that version on.
A note on the source
The shader is plain GLSL 1.20 with no external includes and no textures of its own: the clouds and the water surface are procedural. If you want to read how something works, the passes are named after what they do and the buffer layout is documented at the top of lib/common.glsl. The source is on Codeberg.
Licensed GPL-3.0. Fork it, take the parts you like, keep it open.
评论 0
登录后参与评分
还没有评论,来抢沙发吧