Перейти к содержимому
Mineforgian

Colored Lux

Colored lighting engine in Minecraft!

Загрузки
30K
Подписчики
21
Обновлён
27 июня 2026 г.
Лицензия
MIT

Опубликован 16 мая 2023 г.

This mod requires  HammerLib.

This mod is a simple fork and remake of the original Albedo by elucent.

It implements a colored lighting engine into Minecraft!

Any light limits? Well... technically not, as long as your hardware will be capable of storing all light sources, you're fine! The default max value is 1.5k lights, but this could be vastly increased (don't recommend going over 4096 tho, as it would start dropping FPS pretty quickly on the powerful GPUs too)

You can customize any block to glow exactly how you want it to!

The reason why this mod exists is fairly simple: issues take too long to get a response, not even a fix. My issues got declined, so this mod is a thing now.

There are a couple of bugfixes: 

  • mobs DO color red when hit
  • Hand lighting is actually correct
  • Particles respect colored lighting
  • Pretty much-unlimited amount of lights is possible

New features:

  • Specify light shading mode in configs (max color / add colors)
  • Custom JSON file to make blocks of choice light up with colors
  • Non-tile blocks can add light each frame instead of each search cycle
  • (NEW) Lux Packs! Similar naming to resource packs, but allow to add support to ANY mod, without the mod author having to write compatibility for Colored Lux. (User-friendly, unless you need to work with Tile Entities, but that is still possible with JS)

 

This mod was made in hope that it would be useful for those who experience bugs with Albedo.

Note: the mod has PARTIAL support for Optifine: You must disable Render Regions and all shaders.

DO NOT REPORT ANY ERRORS IF YOU ARE USING OPTIFINE! THEY ARE GOING TO GET DISCARDED.

This mod has trouble working on AMD GPUs, the cause of this is unknown, sadly.

If you want to collaborate, feel free to PM me on discord, I'll gladly offer my help for you to implement this API into your mod!

 

Here's a good example of colored lighting ( TerrariaCraft):

 

Vanilla lighting improved (only using lights.json file, can be downloaded from Github):

 

Currently (known) supported colored lighting mods:

Are you developing an integration? Let me know on discord! I'll happily add your mod to the list!

 

Permissions:

  • You can use this mod in your modpack.
  • You are not allowed to re-publish this mod to other sites without providing a Modrinth/CurseForge download link and my permission (PM to  Zeitheron, or via Discord)
  • You are not allowed to include this (or any other mods of the DragonForge team) in your own mod. Building add-ons, however, is allowed, but a friendly PM would be good.

Note:

  • The only supported version of Minecraft is the latest one that this mod exists for. DO NOT ASK TO DOWNGRADE!

Want to discuss anything? Need help with APIs?

Join the discord server and follow Zeitheron on Twitter!

If you would like to support my work, you can become a patron via  Patreon

Ченджлог

12.6.37Релиз1.12.2 · 27 июня 2026 г.

To get developer builds, consult our maven repository

Changes:

  • 12.6.37: Light mixing moved into ShaderMixLightVariable;
  • 12.6.36: Fix lang file names;
  • 12.6.36: Unify shaders to lessen the maintenance burden; Added reduced light refresh rate option (on by default) to increase performance;
  • 12.6.35: Reduce amount of FloatBuffer.put calls by bulking up whole colored light into one operation, and inserting it as an array of elements; Smarter block update detection, and overall faster block update rate;
  • Remove unused code & change normal light direction a little.
  • Fix underwater overlay; Add normal rendering on entities to better show the shading nature of entities;
  • Performance improvements, attempt to reduce memory leaking, reduce area update frequency, change update check website.
  • Disabled GUI shaders... until I find a proper way of lighting GUIs back up in Vr.
  • Fixed (hopefully) NPE in some weird edge-cases. Also pushed an experiment fix for GUI rendering with colored lux in VR, though it seems to not work.
  • Fix GL errors with uniforms.
  • Fix GL error spam.
  • No. Revert that.
  • Hopefully improve compatibility issue? I tried my best here!
  • Code cleanup, refactor to proper package, a few API methods in LuxManager, improved /lux picktile, and a few test tile wrappers for proof of concept.
  • Added fog rendering.
  • Improved performance by using "switch" instead of "if", fixed a random crash while switching to particle shader while the world is still loading.
  • Added saturation support.
  • Added support for checking compatibility with GPU hardware. (suggested to handle by 3rd party mods, but a warning may be added later on)
  • Hotfix JS code
  • Added JS Engine (LuxPack API v2)
  • Added support for Lux Packs!
  • Optimized lighting and removed old code.
  • Expand light limit using GL buffers up to 2048 sources.
  • Done some optimizations for performance,
  • Bridge with Hammer Core
  • Optifine support..... Again :/
  • Added /lux pickstate to obtain the extended blockstate to clipboard.
12.6.35Релиз1.12.2 · 3 июня 2026 г.

To get developer builds, consult our maven repository

Changes:

  • 12.6.35: Reduce amount of FloatBuffer.put calls by bulking up whole colored light into one operation, and inserting it as an array of elements;
  • Smarter block update detection, and overall faster block update rate;
12.6.34Релиз1.12.2 · 26 марта 2025 г.

To get developer builds, see HammerLib wiki.

Changes:

  • Remove unused code & change normal light direction a little
  • Fix underwater overlay; Add normal rendering on entities to better show the shading nature of entities;

Комментарии

Загружаем…