
Gleam 是一款功能极其强大且高度可定制的彩色光源模组,能够在极高的渲染距离下呈现数万盏彩色光源,同时对帧率的影响微乎其微;它是迄今为止最强大的彩色光源模组,旨在满足休闲玩家以及希望丰富游戏光照引擎的模组开发者的需求。
Gleam 完全兼容 Sodium!



Gleam 提供了多种特性,例如:
- 支持全 RGB 彩色光源,色彩鲜艳生动!
- UV 黑光灯效果,使饱和物体在黑暗中发光!
- Gleam 能够同时加载多达 32,768 盏光源!
- 极高的彩色光源渲染距离,覆盖 12x12 区块半径范围。
- 支持针对方块状态(Blockstate)的特定彩色光源。
- 极致的优化性能 (详见下文章节)
- 采用更细腻的光源处理方式,不像同类其他模组那样过于喧宾夺主
- 完全基于资源包的方式添加更多光源,支持众多原版和模组方块,并在社区的帮助下持续扩展支持列表!
- 最重要的是 没有使用生成式 AI;因为 Gleam 是一个“闪耀 ✨”的例子,证明了无需依赖 AI 也能做出优秀作品。不客气。


如前文简要提及,Gleam 经过重度优化,以确保其运行尽可能流畅,并能在对性能影响极小的情况下处理数万盏光源。它通过一系列技巧实现这一目标,例如智能光源收集、基于区块的 GPU 缓冲、空间网格技术以及对资源的高效利用等。

上图是在拥有 Sodium 的情况下,在高达 192 格的红树林中加载数千个彩色光源时的截图,此时游戏仍能保持稳定的约 60 FPS!结果可能因电脑配置而异,但只要你拥有一台配备尚可的 GPU 和 CPU 的现代电脑,就可以预期 Gleam 能运行得相当流畅。


Gleam 在设计之初就考虑了模组兼容性,并且支持模组的列表正在不断扩大!我们采用社区贡献驱动的方式来添加兼容性支持;由于资源包系统易于理解,任何人都可以为任意方块赋予彩色光源,并自由提交 JSON 文件,以便在 Gleam 的未来版本中添加支持。
如果你有兴趣为模组方块贡献彩色光源,你可以向 Gleam 的 GitHub 仓库发起 Pull Request,或者在我们的 Discord 服务器中手动发送 JSON 文件。
以下是目前 Gleam 支持的模组列表:
当前支持的模组
以及关于如何使用资源包添加更多彩色灯光的简短教程:
如何添加自定义彩色灯光
为了添加更多的彩色灯光,你需要在以下目录中创建一个 JSON 文件:assets/<namespace>/gleam/light_providers/。其中 namespace(命名空间)可以是任意你选择的名称;不过我建议使用 minecraft 或者你打算为其添加兼容性的模组的命名空间。
概述
以下是 Gleam Light Provider JSON 的基本结构:
{
"emitters": [
"modid:example_block", // 你可以提供一个单一方块或一个列表,指定该灯光提供者适用的方块。
"modid:example_lamp[lit=true,facing=north]" // 支持使用 Minecraft 命令语法的方块状态;也允许设置多个条件。
],
"light_properties": {
"encoding": "hex", // 你可以将方块的灯光指定为 "rgb" (0-1)、"hsl" (0-255) 或 "hex" (#RRGGBB)。
"hex": "#FF0000", // 灯光颜色。
"radius": 8.0, // 定义彩色光扩散的范围半径。
"intensity": 1.0 // 乘数,用于定义光的强度,让你可以调亮或调暗其亮度。
}
}
编码格式
// 以下配置仅在 encoding 设置为 "rgb" 时解析
"encoding": "rgb",
"red": 0.2,
"green": 0.6,
"blue": 1.0,
// 以下配置仅在 encoding 设置为 "hsl" 时解析
"encoding": "hsl",
"hue": 149,
"saturation": 255,
"lightness": 153,
// 以下配置仅在 encoding 设置为 "hex" 时解析
"encoding": "hex",
"hex": "#FF0000",
UV 黑光灯
为了使光源发出 UV 黑光,你必须使用 blacklight 编码。
// "blacklight" 编码不需要任何额外的参数
"encoding": "blacklight",
黑光灯仅在方块未暴露于任何天空光照且环境足够黑暗时才会显现。
可选变量
"occlude_to_blocklight" - 默认情况下,彩色灯光会将自身遮挡至方块光级别,以防止光线穿透物体,但副作用是非发光方块无法拥有彩色灯光。将此值设置为 false 允许任何方块拥有彩色灯光,无论其是否本身会发光。


Gleam 目前仅支持彩色灯光,但我们计划随着时间的推移实现更多功能,例如:
- 泛光 (Bloom) - 一种流行的视觉效果,最常见于光影中,使明亮物体周围产生光晕,看起来仿佛在发光。
- 实体彩色灯光 - 到目前为止,实体不受彩色灯光影响;但有计划让它们在靠近彩色光源时像方块一样被染色。
- 动态彩色灯光 - 标准的动态灯光效果,某些实体和手持物品会照亮黑暗区域,但支持彩色灯光。
- 轮廓光 (Rim-light) - 社区提出的一个流行建议是,在世界中的方块和实体周围添加轮廓线,以复制类似官方宣传艺术品的效果。


Shimmer - Gleam 彩色光源代码的一小部分源自 Shimmer,并以其作为起点;此后我在此基础上进行了迭代和大幅修改,以适应项目的自身需求;但仍需谨记,若无 Shimmer,Gleam 可能根本不会存在。因此,我要向 Shimmer 及其开发者们的辛勤付出致以谢意!


问:Gleam 是客户端模组吗?
答:是的!服务器端无需安装即可正常运行。
问:你何时会更新到 [X] Minecraft 版本?
答:Gleam 将在可预见的未来继续支持 1.20.1 和 1.21.1 版本;目前没有计划迁移至 26.1+ 及更高版本,且未经本人明确授权,不得将 Gleam 移植到任何更新的版本上。
问:是否会向后移植(Backports)?
答:我可能会在未来某个时间将 Gleam 向后移植到 1.20.1,但目前我只打算支持 1.21.1;至于其他版本,我没有进一步向后移植的计划。
问:是否有 Fabric 端口版?
答:也许会有。
问:此模组是否由 AI 生成?
答:如前所述,绝对没有。Gleam 中的所有代码均由人类完全手工编写。制作 Gleam 时未使用任何生成式 AI 内容。
问:Gleam 是否使用 Veil 来实现彩色光源?
答:不,Gleam 实现了自己的彩色光源方案,但如果安装了 Veil,它也完全兼容并能与之协同工作!

Gleam © 2026 by ThatJadenXgamer (ThatMaidenJaden) is licensed under CC BY-NC-ND 4.0


Gleam is an extremely powerful and very customizable colored lights mod that can render tens of thousands of colored lights at very high render distances with very little impact on FPS; it is by far the most capable colored lights mod to ever exist, intended for both casual players and mod developers looking to spice up the game's lighting engine.
Gleam is also fully compatible with Sodium!



Gleam provides a variety of features such as:
- Full RGB Colored Lights support with a vibrant pop to them!
- UV Blacklights that make saturated objects glow in the dark!
- Gleam is able to load as many as 32,768 lights at once!
- A very high render distance for rendering colored lights, within a 12x12 chunk radius.
- Blockstate specific colored lights.
- Incredibly Optimized (see section below for more details)
- Subtler approach to colored lights that isn't as overbearing as other mods in the genre
- Fully Resource Pack driven way of adding more lights with support for many vanilla and modded blocks, with an ever expanding list of support with the help of our community!
- And most importantly NO generative AI was used; because Gleam is a "shining ✨" example of how you dont need to use ai. You're welcome.


As briefly mentioned earlier, Gleam is quite heavily optimized to ensure it can run as smoothly as possible and be able to handle tens of thousands of lights with very little impact on performance, it does this through a variety of tricks like Smart Light gathering, Chunk-Based GPU Buffering, Spatial Grids, Efficent usage of Resources and so on.

Above is a screenshot taken while loading THOUSANDS of colored lights in a 192 blocks tall Nether Crimson Forest with Sodium and the game still runs at around a stable 60 FPS! results may vary from PC-to-PC but you can expect Gleam to run fairly smoothly assuming you have a modern computer with a decently good GPU and CPU.


Gleam is made with mod compatibility in-mind with an ever expanding list of mods it supports! We have a contribution-driven basis for how we'll be adding compatibility; because of the easy to understand Resource Pack system. absolutely anyone can give any block a colored light and free to send over the JSONs to be added in future releases of Gleam.
If you are interested in contributing colored lights for modded blocks, you can Pull-Request to the Gleam Github Repository or manually send over the JSONs in our discord server.
Below are the current list of Mods supported by Gleam:
Currently Supported Mods
And a short Tutorial on how to add more colored lights with Resource Packs:
How to add Custom Colored Lights
In order to add more colored lights you need to make a JSON file within the following directory: assets/<namespace>/gleam/light_providers/ the namespace can be anything of your choice; though I recommend using either minecraft or the namespace of whatever mod you intend on adding compat to.
Overview
Here is the is the skeleton of a Gleam Light Provider JSON.
{
"emitters": [
"modid:example_block", // You can provide a singleton or a list of blocks the light provider applies itself to.
"modid:example_lamp[lit=true,facing=north]" // Supports blockstates using minecraft command syntax; it also allows multiple conditions.
],
"light_properties": {
"encoding": "hex", // you can specify the light for a block as either an "rgb" 0-1, "hsl" 0-255 or "hex" #RRGGBB.
"hex": "#FF0000", // the light color.
"radius": 8.0, // defines the radius that our colored light spreads out to.
"intensity": 1.0 // multiplier that defines the strength of the light, letting you brighten or dim its intensity.
}
}
Encodings
// The following only get parsed if encoding is set to "rgb"
"encoding": "rgb",
"red": 0.2,
"green": 0.6,
"blue": 1.0,
// the following only gets parsed if encoding is set to "hsl"
"encoding": "hsl",
"hue": 149,
"saturation": 255,
"lightness": 153,
// the following only gets parsed if encoding is set to "hex"
"encoding": "hex",
"hex": "#FF0000",
UV Blacklights
In order to make a light source emit a UV Blacklight, you must use the blacklight encoding
// "blacklight" encoding does not need any additional parsing
"encoding": "blacklight",
Blacklights only appear when the block is not exposed to any skylight and it is sufficently dark.
Optional Variables
"occlude_to_blocklight" - by default colored lights will occlude themselves to the blocklight to prevent bleeding through objects but a side-effect is that non-light emitting blocks cannot have colored lights. setting this to false allows any block to have a colored light regardless of its emission.


Gleam currently only supports Colored Lights but we do plan on implementing more features as time goes on, such as:
- Bloom - A popular visual effect most commonly seen in shaders that make bright objects bleed around it and look as if it's glowing.
- Entity Colored Lights - So far, entities are not affected by colored lights; but there are plans to make them similarly get tinted like the blocks do when near colored light sources.
- Colored Dynamic Lights - Standard run-of-the-mill dynamic lights where certain entities and held items would illuminate dark areas, but with support for colored lights.
- Rim-light - a popular suggestion by the community was to add outlines around blocks and entities in the world to replicate a similar effect to the offical promotional art.


Shimmer - A small chunk of Gleam's colored lights code was derived from Shimmer's as a starting-off point, which I've since iterated on and changed quite drastically to fit my own needs for the project; though it is still important to remember that without Shimmer there would likely be no Gleam. And that is why I'd like to thank Shimmer and its Developers for their hard work!


Q: Is Gleam a client-side mod?
A: Yes! don't need it on the server for it to work.
Q: When will you update to [X] minecraft version?
A: Gleam will be staying on 1.20.1 and 1.21.1 for the foreseeable future; there are no plans to move to 26.1+ and no explicit permission will be granted to port Gleam to any newer versions on my behalf.
Q: Backports?
A: I may backport Gleam to 1.20.1 sometime in the future, but for now I just intend on supporting 1.21.1; as for any other versions, I don't intend on backporting any further.
Q: Fabric Port?
A: Maybe.
Q: Is this mod AI-generated?
A: As stated earlier, NO. Everything in Gleam is FULLY HUMAN-MADE. Absolutely no generative AI content was used to make Gleam.
Q: Does Gleam use Veil to add colored lights?
A: No, gleam does its own thing to implement colored lights, but is also fully compatible and works with Veil assuming it's present!

Gleam © 2026 by ThatJadenXgamer (ThatMaidenJaden) is licensed under CC BY-NC-ND 4.0

评论 0
登录后参与评分
还没有评论,来抢沙发吧