Class PostProcessHandler

java.lang.Object
team.lodestar.lodestone.systems.postprocess.PostProcessHandler

public class PostProcessHandler extends Object
Handles world-space post-processing. Based on vanilla PostChain system, but allows the shader to access the world depth buffer.
  • Constructor Details

    • PostProcessHandler

      public PostProcessHandler()
  • Method Details

    • addInstance

      public static void addInstance(PostProcessor instance)
      Add an PostProcessor for 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.minecraftforge.client.event.RenderLevelStageEvent event)