mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-18 11:29:08 +00:00
79 lines
2.7 KiB
Java
79 lines
2.7 KiB
Java
package net.coderbot.iris.pipeline;
|
|
|
|
import com.gtnewhorizons.angelica.compat.mojang.Camera;
|
|
import it.unimi.dsi.fastutil.objects.Object2ObjectMap;
|
|
import net.coderbot.iris.compat.dh.DHCompat;
|
|
import net.coderbot.iris.features.FeatureFlags;
|
|
import net.coderbot.iris.gbuffer_overrides.matching.InputAvailability;
|
|
import net.coderbot.iris.gbuffer_overrides.matching.SpecialCondition;
|
|
import net.coderbot.iris.gbuffer_overrides.state.RenderTargetStateListener;
|
|
import net.coderbot.iris.celeritas.CeleritasTerrainPipeline;
|
|
import com.gtnewhorizons.angelica.glsm.texture.TextureType;
|
|
import net.coderbot.iris.helpers.Tri;
|
|
import net.coderbot.iris.shaderpack.CloudSetting;
|
|
import net.coderbot.iris.shaderpack.texture.TextureStage;
|
|
import net.coderbot.iris.uniforms.FrameUpdateNotifier;
|
|
import net.minecraft.client.renderer.EntityRenderer;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
import java.util.List;
|
|
import java.util.OptionalInt;
|
|
|
|
public interface WorldRenderingPipeline {
|
|
void beginLevelRendering();
|
|
void renderShadows(EntityRenderer levelRenderer, Camera camera);
|
|
default void preSubmitShadowGraph(int frame, boolean spectator) {}
|
|
void addDebugText(List<String> messages);
|
|
OptionalInt getForcedShadowRenderDistanceChunksForDisplay();
|
|
|
|
WorldRenderingPhase getPhase();
|
|
|
|
void setOverridePhase(WorldRenderingPhase phase);
|
|
void setPhase(WorldRenderingPhase phase);
|
|
void setInputs(InputAvailability availability);
|
|
void setSpecialCondition(SpecialCondition special);
|
|
void setDeclaredTranslucency(@Nullable Boolean translucent);
|
|
RenderTargetStateListener getRenderTargetStateListener();
|
|
|
|
int getCurrentNormalTexture();
|
|
int getCurrentSpecularTexture();
|
|
|
|
void onBindTexture(int id);
|
|
|
|
/** Re-bind the program/framebuffer for the currently-active Pass, if any. */
|
|
void rebindCurrentPass();
|
|
|
|
default void onEntityRenderBoundary() {}
|
|
|
|
void beginHand();
|
|
|
|
void beginTranslucents();
|
|
void finalizeLevelRendering();
|
|
void destroy();
|
|
|
|
CeleritasTerrainPipeline getCeleritasTerrainPipeline();
|
|
FrameUpdateNotifier getFrameUpdateNotifier();
|
|
DHCompat getDHCompat();
|
|
|
|
boolean shouldDisableVanillaEntityShadows();
|
|
boolean shouldDisableDirectionalShading();
|
|
boolean supportsEndFlash();
|
|
CloudSetting getCloudSetting();
|
|
boolean shouldRenderUnderwaterOverlay();
|
|
boolean shouldRenderVignette();
|
|
boolean shouldRenderSun();
|
|
boolean shouldRenderMoon();
|
|
boolean shouldRenderStars();
|
|
boolean shouldRenderSkyDisc();
|
|
boolean shouldRenderWeather();
|
|
boolean shouldRenderWeatherParticles();
|
|
boolean shouldWriteRainAndSnowToDepthBuffer();
|
|
boolean shouldRenderParticlesBeforeDeferred();
|
|
boolean allowConcurrentCompute();
|
|
|
|
float getSunPathRotation();
|
|
|
|
boolean hasFeature(FeatureFlags flag);
|
|
Object2ObjectMap<Tri<String, TextureType, TextureStage>, String> getTextureMap();
|
|
}
|