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 float
private static final String
private final String
private final ResourceProvider
private int
private final RenderTarget
private int
private org.joml.Matrix4f
private 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) void
addTempTarget
(String name, int width, int height) void
close()
final String
getName()
private RenderTarget
getRenderTarget
(String target) getTempTarget
(String attributeName) private void
load
(TextureManager textureManager, ResourceLocation resourceLocation) private void
parsePassNode
(TextureManager textureManager, com.google.gson.JsonElement json) private void
parseTargetNode
(com.google.gson.JsonElement json) private void
parseUniformNode
(com.google.gson.JsonElement json) void
process
(float partialTicks) void
resize
(int width, int height) private void
setFilterMode
(int filterMode) void
setUniform
(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:
IOException
com.google.gson.JsonSyntaxException
-
-
Method Details
-
load
private void load(TextureManager textureManager, ResourceLocation resourceLocation) throws IOException, com.google.gson.JsonSyntaxException - Throws:
IOException
com.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:
close
in 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
-