HomeJavaResourcepacksHAL Lighting Shader
HAL Lighting Shader
ResourcepacksJava

HAL Lighting Shader

by SilentPaltos · on Modrinth

⬇ Download on Modrinth
HAL Lighting Shader — screenshot 1

Minecraft-HAL-Lighting-VanillaShader

I don't remember why it is named HAL..

I created it as a tool for making lighting on maps

Minecraft 26.1 Snapshot 1
Incompatible with Sodium!

Video: https://youtu.be/WDjhtDT9G6Y

It might be not perfect but I just wanted to create some lighting system using minecraft vanilla shaders. Just for fun.
It affects blocks, entities and particles, but it is still unfinished since not all object are affected by this system. And there is a lot of things that can be done to improve this shader. Probably I'll fix all of it.

Here is some screenshots from the developing process:
2025-12-30_21 56 08 2025-12-30_15 41 03 2025-12-31_00 42 59 2025-12-30_15 43 17 2026-01-06_17 52 12 2026-01-06_17 59 47 2026-01-06_02 47 52 2026-01-02_22 05 24

This shader allow you to create areas that filled with light
It has next files:

Mainly you need only hal_list.glsl and hal_config.glsl

in hal_config.glsl you only need these lines:

#define     AREA_LIGHTS_COUNT 100
#define LIGHT_RENDER_DISTANCE -1
#define FIX_OUT_OF_BOUNDS_MIX true

Talking about creating lights...
You can create them in the hal_list.glsl
There is some examples how you can create them

// default way to create
        area_light[0] = arealight(
            vec4( 1.0, 0.0, 0.0, 0.0 ), vec4( 0.0, 0.0, 0.0, 0.0 ), 
            vec3( 0.5, 0.0, 0.0 ), LIGHT_MODE_ADD,
            vec3( -247, -44, 14 ), vec3( 5.0, 0.0, 0.0 ),
            LIGHT_SHAPE_CUBOID,    vec3( 5.5, 5.5, 5.5 )
        );

// using variables
        arealight CHECKPOINT_DEFAULT = arealight(
            vec4( 0.4, 0.6, 1.0, 0.0 ) * 1.1, vec4( 0.0, 0.0, 0.0, 0.0 ), 
            vec3( 1.0, 0.25, 1.0 ), LIGHT_MODE_ADD,
            vec3( 0, 0, 0 ),    vec3( 0.0, 1.5, 0.0 ),
            LIGHT_SHAPE_CUBOID, vec3( 1.5, 1.5, 1.5 )
        );
        area_light[5] = CHECKPOINT_DEFAULT;
        area_light[5].pos = vec3( 24.5, -48.5, 9.5 );

// by components
        area_light[11].mode         = LIGHT_MODE_ADD;
        area_light[11].start_color  = vec4( 1.0, 0.7, 0.1, 0.0 ) * 0.8;
        area_light[11].end_color    = vec4( 0.0, 0.0, 0.0, 0.0 );
        area_light[11].mix_strength = vec3( 0.0, 0.0, 0.8 );
        area_light[11].shape           = LIGHT_SHAPE_CUBOID;
        area_light[11].pos             = vec3( -3.5, -49.0, 16.0 );
        area_light[11].shape_parameter = vec3( 1.0, 1.0, 1.9 );
        area_light[11].offset          = vec3( 0.0, 1.0, 0.0 );

As you can see every light source(if it can be called that way) has 8 parameters

More screenshots:
2025-12-31_15 18 36 2025-12-31_14 48 50 2025-12-30_21 14 59 2025-12-31_00 21 30 2025-12-30_16 54 55 2025-12-31_15 49 31 2025-12-30_21 34 53 2025-12-30_17 42 23

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java resource packs walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more