Class PostProcessHandler
java.lang.Object
team.lodestar.lodestone.systems.postprocess.PostProcessHandler
Handles world-space post-processing.
Based on vanilla
PostChain system, but allows the shader to access the world depth buffer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddInstance(PostProcessor instance) Add anPostProcessorfor it to be handled automatically.static voidstatic voidonWorldRenderLast(net.neoforged.neoforge.client.event.RenderLevelStageEvent event) static voidresize(int width, int height)
-
Constructor Details
-
PostProcessHandler
public PostProcessHandler()
-
-
Method Details
-
addInstance
Add anPostProcessorfor it to be handled automatically. IMPORTANT: processors has to be added in the right order!!! There's no way of getting an instance, so you need to keep the instance yourself. -
copyDepthBuffer
public static void copyDepthBuffer() -
resize
public static void resize(int width, int height) -
onWorldRenderLast
public static void onWorldRenderLast(net.neoforged.neoforge.client.event.RenderLevelStageEvent event)
-