Class RenderTargetRegistry

java.lang.Object
foundry.veil.render.shader.RenderTargetRegistry

public class RenderTargetRegistry extends Object
  • Field Details

    • renderTargets

      public static Map<String,com.mojang.datafixers.util.Pair<Integer,Integer>> renderTargets
    • renderTargetObjects

      public static Map<String,com.mojang.blaze3d.pipeline.RenderTarget> renderTargetObjects
    • shouldCopyDepth

      public static List<String> shouldCopyDepth
  • Constructor Details

    • RenderTargetRegistry

      public RenderTargetRegistry()
  • Method Details

    • register

      public static void register(String id, com.mojang.datafixers.util.Pair<Integer,Integer> renderTarget)
      Add a RenderTarget to the registry.
      Parameters:
      id - The name of the render target.
      renderTarget - The render target.

      This will initialize the render target and optionally copy the depth buffer. Tip: If you want a quick RenderTarget to use, use TextureTarget

      How to use: See RenderStateShardRegistry

    • register

      public static void register(String id, com.mojang.datafixers.util.Pair<Integer,Integer> renderTarget, boolean shouldCopyDepth)
      Add a RenderTarget to the registry.
      Parameters:
      id - The name of the render target.
      renderTarget - The render target.
      shouldCopyDepth - Whether the depth buffer should be copied to this render target.

      This will initialize the render target and optionally copy the depth buffer. Tip: If you want a quick RenderTarget to use, use TextureTarget

      How to use: See RenderStateShardRegistry

    • getRenderTargets

      public static Map<String,com.mojang.datafixers.util.Pair<Integer,Integer>> getRenderTargets()
    • modifyPostChain

      public static void modifyPostChain(net.minecraft.client.renderer.PostChain postChain, net.minecraft.resources.ResourceLocation $$3)