Skip to content

Commit

Permalink
Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Dec 12, 2023
1 parent 5433837 commit b3c47c6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b3c47c6

Please sign in to comment.