mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-18 11:29:08 +00:00
Stop shaders from forever breaking entity instancing (#2187)
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user