From b3c47c6a4ef825eeb76010cf322909a34637ae27 Mon Sep 17 00:00:00 2001 From: IMS212 Date: Mon, 11 Dec 2023 18:50:24 -0800 Subject: [PATCH] Functions --- .../iris/pipeline/transform/transformer/SodiumTransformer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/coderbot/iris/pipeline/transform/transformer/SodiumTransformer.java b/src/main/java/net/coderbot/iris/pipeline/transform/transformer/SodiumTransformer.java index 2427ef38df..82f4b3d830 100644 --- a/src/main/java/net/coderbot/iris/pipeline/transform/transformer/SodiumTransformer.java +++ b/src/main/java/net/coderbot/iris/pipeline/transform/transformer/SodiumTransformer.java @@ -32,7 +32,7 @@ public static void transform( replaceMCEntity(t, tree, root); root.replaceExpressionMatches(t, CommonTransformer.glTextureMatrix0, "mat4(1.0)"); - root.replaceExpressionMatches(t, CommonTransformer.glTextureMatrix1, "iris_LightmapTextureMatrix"); + root.replaceExpressionMatches(t, CommonTransformer.glTextureMatrix1, "mat4(1.0)"); tree.parseAndInjectNode(t, ASTInjectionPoint.BEFORE_FUNCTIONS, "uniform mat4 iris_LightmapTextureMatrix;"); root.rename("gl_ProjectionMatrix", "iris_ProjectionMatrix"); @@ -207,7 +207,6 @@ vec2 _unpack_texcoord(int quad_index, int corner_index) { "int quad_index = gl_VertexID >> 2;" + "int corner_index = gl_VertexID & 3;" + - "int wtf = gl_VertexID % 4;" + "vec2 v_RelCoord = CORNERS[corner_index];" + "uvec4 color = ssbo_Quads[quad_index].color;" + "vec4 light01 = unpackUnorm4x8(ssbo_Quads[quad_index].light[0]);" + // (c0.x, c0.y, c1.x, c1.y)