Fixes World Lighting to Text Rendering so its not Fullbright (#1976)

* Fixes World Lighting to Text Rendering so its not Fullbright

* Carry lightmap state per text segment

* Text lighting: per-segment lightmap uniform, fix GL_RESCALE_NORMAL
* per segment uniform instead of stride increase
* Shade text based on GL light state
* fix u_NormalScale
* GL_LIGHT > 1 usage warnings (not currently handled)

---------

Co-authored-by: Jason Mitchell <[email protected]>
This commit is contained in:
KAMKEELandJason Mitchell authored and GitHub committed 2026-08-14 21:34:58 -07:00
1 parent c86e1de9f6
commit ffe54f61b9
12 files changed
+826 -68

No files matched your search

@@ -6,7 +6,7 @@ import net.coderbot.iris.gl.uniform.UniformUpdateFrequency;
import org.joml.Matrix4f;
public class BuiltinReplacementUniforms {
private static final Matrix4f lightmapTextureMatrix;
public static final Matrix4f lightmapTextureMatrix;
static {
// This mimics the transformations done in LightTexture to the GL_TEXTURE matrix.