Stop shaders from forever breaking entity instancing (#2187)

This commit is contained in:
Eclipse-Sol authored and GitHub committed 2026-10-02 17:02:45 -07:00
1 parent 9f19d94c5f
commit db7d328481
1 file changed
+4 -1
@@ -1,5 +1,6 @@
package com.gtnewhorizons.angelica.rendering;
import com.gtnewhorizons.angelica.rendering.tesr.PassRebindGate;
import com.gtnewhorizons.angelica.rendering.tesr.TesrAttribution;
import net.coderbot.iris.gbuffer_overrides.matching.SpecialCondition;
import net.coderbot.iris.layer.GbufferPrograms;
@@ -18,7 +19,9 @@ public final class EntityRenderScope {
if (lightning) {
GbufferPrograms.setupSpecialRenderCondition(SpecialCondition.LIGHTNING);
}
return GbufferPrograms.beginNestedEntityPhase();
final boolean nested = GbufferPrograms.beginNestedEntityPhase();
PassRebindGate.rebindIfDirty();
return nested;
}
public static void end(Class<?> prevRenderable, boolean lightning, boolean nested) {