Skip to content

Light Utilities

Shock Micro edited this page Jun 26, 2021 · 2 revisions

A few utilities for light. Download it here!

Everything uses minecraft_sample_lightmap()

Some things in vanilla (such as entities, text on signs, particles) don't use the lightmap function for determining its actual lighting, instead opting for a texelFetch() with the same parameters. This utility changes that, without impacting vanilla rendering by default.

Block and Skylight Uniforms

Adds 2 floats to light.glsl to make it simpler to check for light level.

Clone this wiki locally