mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-16 10:45:09 +00:00
Set defaults once per TE pass instead of once per TE (#1213)
This commit is contained in:
1 parent
38641268ae
commit
085ec79c21
2 files changed
+18
-8
No files matched your search
@@ -2,9 +2,11 @@ package net.coderbot.iris.layer;
|
||||
|
||||
import net.coderbot.iris.Iris;
|
||||
import net.coderbot.iris.gbuffer_overrides.matching.SpecialCondition;
|
||||
import net.coderbot.iris.gl.shader.ProgramCreator;
|
||||
import net.coderbot.iris.gl.state.StateUpdateNotifiers;
|
||||
import net.coderbot.iris.pipeline.WorldRenderingPhase;
|
||||
import net.coderbot.iris.pipeline.WorldRenderingPipeline;
|
||||
import org.lwjgl.opengl.GL20;
|
||||
|
||||
public class GbufferPrograms {
|
||||
private static boolean entities;
|
||||
@@ -64,6 +66,12 @@ public class GbufferPrograms {
|
||||
blockEntities = false;
|
||||
}
|
||||
|
||||
public static void setBlockEntityDefaults() {
|
||||
GL20.glVertexAttrib2s(ProgramCreator.MC_ENTITY, (short)-1, (short)-1);
|
||||
GL20.glVertexAttrib2f(ProgramCreator.MC_MID_TEX_COORD, 0.5f, 0.5f);
|
||||
GL20.glVertexAttrib4f(ProgramCreator.AT_TANGENT, 1.0f, 0.0f, 0.0f, 1.0f);
|
||||
}
|
||||
|
||||
public static WorldRenderingPhase getCurrentPhase() {
|
||||
final WorldRenderingPipeline pipeline = Iris.getPipelineManager().getPipelineNullable();
|
||||
|
||||
|
||||
Reference in new issue
Block a user