Plasma Shader
一款专为 Iris + Sodium 打造的 Minecraft:Java Edition 延迟渲染光影包,从零开始构建。
Plasma Shader 围绕一个核心理念打造:光照应当合乎逻辑。阳光穿过大气层时会发生变化;水体随深度吸收光线;云层散射并遮挡阳光;湿润表面变得更为平滑。这些效果相互关联,而非作为独立的视觉特效处理。
该整合包中的每个光影均使用已发表的渲染数学公式从零编写。未使用或改编任何其他光影包的代码。
基于 OpenGL 3.3 兼容性配置文件 编写,无需核心配置文件或 Vulkan 渲染路径。
在 Minecraft 26.3、Iris 1.11.7 以及 RTX 3050 (4 GB) 上经过测试。
光照
世界被渲染到 G-buffer 中,并在延迟pass中进行光照计算。
- Cook–Torrance 光照,采用 GGX、Smith 相关可见性和 Schlick Fresnel 模型。光照使用逐像素的反照率、法线、粗糙度和金属度。
- 大气阳光。 阳光颜色源自大气透射率,而非日出色调。穿过大气层的路径越长,阳光越偏红,天光也使用相同的透射率。
- 瑞利散射和米氏散射,并增加了一个受多重散射启发的气辉项,以防止地平线变得不自然地黑暗。
- 保留原版光照。 烘焙的角落和方块间阴影同时影响阳光和天光,因此方块表面在日光下仍能保持其形状。
- 彩色方块光源,支持可配置的光源色温,以及发光方块和手持光源产生的照明。

天空
天空、云层和大气均为程序化生成。
- 云层: 五层基础噪声、侵蚀层、方向性浮雕以及沿光照方向的自阴影。云层边缘向地平线方向柔和过渡,以体现其视距效果。
- 星空与银河: 程序化生成的星场,带有侧视的银河带,月光下会淡出。
- 极光: 沿弧线定位的程序化极光幕,具有明确的底部边缘、前向散射的边缘光环,以及灵感源自氧气/氮气的绿色调色彩。
月亮: 具有自身表观大小和光晕,而非变暗的太阳版本。


水
水的颜色源于吸收,而非蓝色叠加层。
- 带有毛细尺度表面细节的格斯坦纳波浪(Gerstner waves)。
- 考虑海床深度的折射效果。
- 波长相关的吸收:浅水区更接近沙子的颜色,而深水区则变为深蓝绿色。
- 海床上的焦散现象以及浅岸边的泡沫。
- 在可见所需几何结构的地方,对天空、云朵、附近地形和手持物品进行屏幕空间反射。
- 水下吸收和颜色着色使用与水面相同的系数。

天气
降雨不仅影响地面,还影响光照。
雨层会衰减入射光,同时影响太阳、天空、云朵和天光。天空会变成阴沉的灰色,而不仅仅是变暗。
在地面上,雨水会留下一层水膜,降低粗糙度并改变漫反射响应。动态的雨滴涟漪会扰动表面法线,使高光在潮湿表面上移动。

风
植被动画由方块身份驱动,而非基于颜色的猜测。
- 叶片原地剪切摆动。
- 扎根植物从基部弯曲。
- 藤蔓从其附着点摆动。
- 投射的阴影与植被动画保持相同的相位。

色彩分级
共有 11 种色调映射算子:
- 线性
- ACES 拟合
- 扩展 Reinhard
- 有理电影色调
- 基于亮度的 Reinhard
- 柔和平面
- 电影感
- 鲜艳
- 中性高光
- 漂白转印效果
- 高对比度电影感
其他控制选项包括曝光、对比度、支点、黑色提升、阴影色相与色调、饱和度、鲜艳度、泛光、暗角、胶片颗粒以及 FXAA。
设置可通过 8 个页面,包含约 90 个命名滑块 进行访问。无需编辑配置文件。
阴影
- 默认情况下使用 4096 × 4096 的阴影贴图。
- 默认阴影距离为 96 方块。
- 使用泊松 PCF 实现柔和的阴影边缘。
- 半影宽度和 acne bias(阴影瑕疵偏置)源自阴影矩阵和太阳的角直径,因此它们会随阴影距离的变化而自动调整。
已知限制
- 屏幕空间反射无法显示画面外的几何体。垂直向下看水面时,可能会显示天空而非湖底。
- 未实现 SSAO(屏幕空间环境光遮蔽)、上帝之光、云层阴影和时间抗锯齿。
- 在第一人称视角下,玩家模型不会参与反射渲染通道。按 F5 切换到第三人称视角,以便在支持的地区可见模型参与反射。
- 这是一个基于光栅化和延迟渲染的光影包,并非路径追踪。
安装方法
- 安装 Sodium 和 Iris Shaders。
- 将
PlasmaShader.zip 放入 .minecraft/shaderpacks 目录中。
- 打开“选项”→“光影包”,并启用 Plasma Shader。
- 从 HIGH 预设开始。如果性能成为问题,请降低阴影距离。
许可证
保留所有权利。
您可以下载并使用该资源包,并分享您自己游戏过程的截图或视频。
重新分发、重新托管、修改、衍生作品、整合包内嵌以及源代码或素材的复用均需要书面许可。完整条款请参阅下载文件中的 LICENSE 文件。
Plasma Shader
A deferred shader pack for Minecraft: Java Edition, built from scratch for Iris + Sodium.
Plasma Shader is built around one idea: the lighting should make sense. Sunlight changes as it passes through the atmosphere. Water absorbs light with depth. Clouds scatter and block sunlight. Wet surfaces become smoother. These effects are connected rather than treated as separate visual tricks.
Every shader in the pack is written from scratch using published rendering mathematics. No code from other shader packs is used or adapted.
Written for the OpenGL 3.3 compatibility profile, with no core-profile or Vulkan rendering path required.
Tested on Minecraft 26.3, Iris 1.11.7, and an RTX 3050 (4 GB).
Lighting
The world is rendered into a G-buffer and lit in a deferred pass.
- Cook–Torrance lighting with GGX, Smith correlated visibility, and Schlick Fresnel. Lighting uses per-pixel albedo, normals, roughness, and metalness.
- Atmospheric sunlight. Sun colour comes from atmospheric transmittance, not a sunrise tint. Longer paths through the atmosphere produce redder sunlight, and skylight uses the same transmittance.
- Rayleigh and Mie scattering, with an added multiple-scattering-inspired airlight term to keep the horizon from going unnaturally dark.
- Vanilla lighting preserved. Baked corner and block-to-block shading affects both sunlight and skylight, so block surfaces retain their shape in daylight.
- Coloured block light with configurable colour temperature, plus emissive blocks and illumination from held light sources.

Sky
The sky, clouds, and atmosphere are procedural.
- Clouds: Five octaves of base noise, an erosion layer, directional relief, and self-shadowing along the light direction. Cloud edges soften toward the horizon to account for their apparent distance.
- Stars and Milky Way: A procedural star field with an edge-on galactic band that fades under moonlight.
- Aurora: Procedural curtains positioned along an arc, with a defined lower edge, forward-sca
ttered rims, and green oxygen / nitrogen-inspired colours.
- Moon: Its own apparent size and halo, rather than a dimmed version of the sun.


Water
Water colour comes from absorption, not a blue overlay.
- Gerstner waves with capillary-scale surface detail.
- Refraction that accounts for seabed depth.
- Wavelength-dependent absorption: shallow water stays closer to the colour of the sand, while deeper water becomes dark blue-green.
- Caustics on the seabed and foam along shallow shorelines.
- Screen-space reflections of the sky, clouds, nearby terrain, and held items where the required geometry is visible.
- Underwater absorption and colour tinting using the same coefficients as the water surface.

Weather
Rain affects the lighting as well as the ground.
The rain layer attenuates incoming light, affecting the sun, sky, clouds, and skylight together. The sky becomes overcast grey rather than simply getting darker.
On the ground, rain leaves a water film that reduces roughness and changes diffuse response. Animated raindrop rings disturb the surface normals, so highlights move across wet surfaces.

Wind
Foliage animation is driven by block identity rather than colour-based guesses.
- Leaves shear in place.
- Rooted plants bend from their base.
- Vines swing from their attachment points.
- Cast shadows follow the same animation phase as the foliage.

Colour grading
There are 11 tone-mapping operators:
- Linear
- ACES fitted
- Extended Reinhard
- Rational filmic
- Reinhard on luminance
- Soft flat
- Cinematic
- Vibrant
- Neutral highlights
- Bleach bypass
- High-contrast filmic
Other controls include exposure, contrast, pivot, black lift, shadow hue and tone, saturation, vibrance, bloom, vignette, film grain, and FXAA.
Settings are available through 8 pages with roughly 90 named sliders. No config-file editing is needed.
Shadows
- 4096 × 4096 shadow map by default.
- 96-block shadow distance by default.
- Poisson PCF for soft shadow edges.
- Penumbra width and acne bias derived from the shadow matrix and the sun's angular diameter, so they adjust with changes to Shadow Distance.
Known limitations
- Screen-space reflections cannot show geometry outside the frame. Looking straight down into water may show the sky instead of the lakebed.
- SSAO, god rays, cloud shadows, and temporal anti-aliasing are not implemented.
- In first person, the player model is not available to the reflection pass. Switch to third person with F5 to make the visible model available where supported.
- This is a rasterised, deferred shader pack. It is not path-traced.
Installation
- Install Sodium and Iris Shaders.
- Put
PlasmaShader.zip in .minecraft/shaderpacks.
- Open Options → Shader Packs and enable Plasma Shader.
- Start with the HIGH preset. Lower Shadow Distance if performance is an issue.
Licence
All rights reserved.
You may download and use the pack, and share screenshots or videos of your own gameplay.
Redistribution, re-hosting, modification, derivative works, modpack inclusion, and reuse of source code or assets require written permission. See the LICENSE file in the download for the full terms.
评论 0
登录后参与评分
还没有评论,来抢沙发吧