Package net.minecraft.client.renderer
Class PostChain
java.lang.Object
net.minecraft.client.renderer.PostChain
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, RenderTarget> private final List<RenderTarget> private floatprivate static final Stringprivate final Stringprivate final ResourceProviderprivate intprivate final RenderTargetprivate intprivate org.joml.Matrix4fprivate float -
Constructor Summary
ConstructorsConstructorDescriptionPostChain(TextureManager textureManager, ResourceProvider resourceProvider, RenderTarget screenTarget, ResourceLocation resourceLocation) -
Method Summary
Modifier and TypeMethodDescriptionaddPass(String name, RenderTarget inTarget, RenderTarget outTarget, boolean useLinearFilter) voidaddTempTarget(String name, int width, int height) voidclose()final StringgetName()private RenderTargetgetRenderTarget(String target) getTempTarget(String attributeName) private voidload(TextureManager textureManager, ResourceLocation resourceLocation) private voidparsePassNode(TextureManager textureManager, com.google.gson.JsonElement json) private voidparseTargetNode(com.google.gson.JsonElement json) private voidparseUniformNode(com.google.gson.JsonElement json) voidprocess(float partialTicks) voidresize(int width, int height) private voidsetFilterMode(int filterMode) voidsetUniform(String name, float backgroundBlurriness) private void
-
Field Details
-
MAIN_RENDER_TARGET
- See Also:
-
screenTarget
-
resourceProvider
-
name
-
passes
-
customRenderTargets
-
fullSizedTargets
-
shaderOrthoMatrix
private org.joml.Matrix4f shaderOrthoMatrix -
screenWidth
private int screenWidth -
screenHeight
private int screenHeight -
time
private float time -
lastStamp
private float lastStamp
-
-
Constructor Details
-
PostChain
public PostChain(TextureManager textureManager, ResourceProvider resourceProvider, RenderTarget screenTarget, ResourceLocation resourceLocation) throws IOException, com.google.gson.JsonSyntaxException - Throws:
IOExceptioncom.google.gson.JsonSyntaxException
-
-
Method Details
-
load
private void load(TextureManager textureManager, ResourceLocation resourceLocation) throws IOException, com.google.gson.JsonSyntaxException - Throws:
IOExceptioncom.google.gson.JsonSyntaxException
-
parseTargetNode
- Throws:
ChainedJsonException
-
parsePassNode
private void parsePassNode(TextureManager textureManager, com.google.gson.JsonElement json) throws IOException - Throws:
IOException
-
parseUniformNode
- Throws:
ChainedJsonException
-
getTempTarget
-
addTempTarget
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
addPass
public PostPass addPass(String name, RenderTarget inTarget, RenderTarget outTarget, boolean useLinearFilter) throws IOException - Throws:
IOException
-
updateOrthoMatrix
private void updateOrthoMatrix() -
resize
public void resize(int width, int height) -
setFilterMode
private void setFilterMode(int filterMode) -
process
public void process(float partialTicks) -
setUniform
-
getName
-
getRenderTarget
-