Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Luminance Wiki › Guides › Understand Dynamic Shader Uniforms and What They Do

Understand Dynamic Shader Uniforms and What They Do

What Are Dynamic Shader Uniforms?

Dynamic Shader Uniforms are variables that shaders can access to receive real-time information about your game state. Instead of shaders only knowing static scene data, they can now respond to what's actually happening—like time of day, player position, weather conditions, or mod-specific events.

How They Work

1. Luminance provides default uniforms — These include common values like elapsed time, player coordinates, and weather state that shader packs can use.

2. Mods can add custom uniforms — Developers using Luminance can create their own uniforms to expose mod-specific data to shaders.

3. Shaders access this data — Shader code reads these uniform values and uses them to create dynamic visual effects.

4. Effects update in real-time — As game state changes, uniform values update automatically, so shader effects respond instantly.

Practical Impact

This means shader packs can create effects that react to gameplay—like enhanced lighting during events, visual feedback from mod mechanics, or environmental effects tied to mod-added weather systems. You won't configure uniforms directly as a player; they work automatically when compatible shaders and mods are installed.