From 364f3a9c003f15bfd93fa7979932a814d1b67684 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Wed, 3 Jan 2024 13:43:35 -0800 Subject: [PATCH] meh - fix silly (this or do math) --- .../angelica/compat/mojang/DefaultVertexFormat.java | 4 ++-- src/main/java/net/coderbot/iris/samplers/IrisSamplers.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gtnewhorizons/angelica/compat/mojang/DefaultVertexFormat.java b/src/main/java/com/gtnewhorizons/angelica/compat/mojang/DefaultVertexFormat.java index 886a4118d..a280624a2 100644 --- a/src/main/java/com/gtnewhorizons/angelica/compat/mojang/DefaultVertexFormat.java +++ b/src/main/java/com/gtnewhorizons/angelica/compat/mojang/DefaultVertexFormat.java @@ -11,8 +11,8 @@ public class DefaultVertexFormat { public static final VertexFormatElement POSITION_ELEMENT = new VertexFormatElement(0, Type.FLOAT, Usage.POSITION, 3); public static final VertexFormatElement COLOR_ELEMENT = new VertexFormatElement(0, Type.UBYTE, Usage.COLOR, 4); - public static final VertexFormatElement TEXTURE_ELEMENT = new VertexFormatElement(OpenGlHelper.defaultTexUnit, Type.FLOAT, Usage.UV, 2); - public static final VertexFormatElement LIGHT_ELEMENT = new VertexFormatElement(OpenGlHelper.lightmapTexUnit, Type.SHORT, Usage.UV, 2); + public static final VertexFormatElement TEXTURE_ELEMENT = new VertexFormatElement(0, Type.FLOAT, Usage.UV, 2); + public static final VertexFormatElement LIGHT_ELEMENT = new VertexFormatElement(1, Type.SHORT, Usage.UV, 2); // TODO: The overlay element index is wrong, need to find a 1.7.10 equivalent public static final VertexFormatElement OVERLAY_ELEMENT = new VertexFormatElement(1, Type.SHORT, Usage.UV, 2); public static final VertexFormatElement NORMAL_ELEMENT = new VertexFormatElement(0, Type.BYTE, Usage.NORMAL, 3); diff --git a/src/main/java/net/coderbot/iris/samplers/IrisSamplers.java b/src/main/java/net/coderbot/iris/samplers/IrisSamplers.java index 2177ca3b3..4ffef547d 100644 --- a/src/main/java/net/coderbot/iris/samplers/IrisSamplers.java +++ b/src/main/java/net/coderbot/iris/samplers/IrisSamplers.java @@ -17,10 +17,10 @@ import java.util.function.IntSupplier; import java.util.function.Supplier; public class IrisSamplers { - public static final int ALBEDO_TEXTURE_UNIT = OpenGlHelper.defaultTexUnit; + public static final int ALBEDO_TEXTURE_UNIT = 0; // TODO: Find equivalent in 1.7.10 public static final int OVERLAY_TEXTURE_UNIT = 1; - public static final int LIGHTMAP_TEXTURE_UNIT = OpenGlHelper.lightmapTexUnit; + public static final int LIGHTMAP_TEXTURE_UNIT = 1; public static final ImmutableSet WORLD_RESERVED_TEXTURE_UNITS = ImmutableSet.of(0, 1, 2);