Package foundry.veil.render.shader
Class RenderTargetRegistry
java.lang.Object
foundry.veil.render.shader.RenderTargetRegistry
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmodifyPostChain(net.minecraft.client.renderer.PostChain postChain, net.minecraft.resources.ResourceLocation $$3) static voidAdd aRenderTargetto the registry.static voidregister(String id, com.mojang.datafixers.util.Pair<Integer, Integer> renderTarget, boolean shouldCopyDepth) Add aRenderTargetto the registry.
-
Field Details
-
renderTargets
-
renderTargetObjects
-
shouldCopyDepth
-
-
Constructor Details
-
RenderTargetRegistry
public RenderTargetRegistry()
-
-
Method Details
-
register
public static void register(String id, com.mojang.datafixers.util.Pair<Integer, Integer> renderTarget) Add aRenderTargetto 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
TextureTargetHow to use: See
RenderStateShardRegistry
-
register
public static void register(String id, com.mojang.datafixers.util.Pair<Integer, Integer> renderTarget, boolean shouldCopyDepth) Add aRenderTargetto 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
TextureTargetHow to use: See
RenderStateShardRegistry
-
getRenderTargets
-
modifyPostChain
public static void modifyPostChain(net.minecraft.client.renderer.PostChain postChain, net.minecraft.resources.ResourceLocation $$3)
-