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 pTextureManager, ResourceProvider pResourceProvider, RenderTarget pScreenTarget, ResourceLocation pResourceLocation) -
Method Summary
Modifier and TypeMethodDescriptionaddPass
(String pName, RenderTarget pInTarget, RenderTarget pOutTarget, boolean pUseLinearFilter) void
addTempTarget
(String pName, int pWidth, int pHeight) void
close()
final String
getName()
private RenderTarget
getRenderTarget
(String pTarget) getTempTarget
(String pAttributeName) private void
load
(TextureManager pTextureManager, ResourceLocation pResourceLocation) private void
parsePassNode
(TextureManager p_110031_, com.google.gson.JsonElement p_110032_) private void
parseTargetNode
(com.google.gson.JsonElement p_110029_) private void
parseUniformNode
(com.google.gson.JsonElement p_110048_) void
process
(float pPartialTicks) void
resize
(int pWidth, int pHeight) private void
setFilterMode
(int pFilterMode) void
setUniform
(String pName, float pBackgroundBlurriness) 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 pTextureManager, ResourceProvider pResourceProvider, RenderTarget pScreenTarget, ResourceLocation pResourceLocation) throws IOException, com.google.gson.JsonSyntaxException - Throws:
IOException
com.google.gson.JsonSyntaxException
-
-
Method Details
-
load
private void load(TextureManager pTextureManager, ResourceLocation pResourceLocation) throws IOException, com.google.gson.JsonSyntaxException - Throws:
IOException
com.google.gson.JsonSyntaxException
-
parseTargetNode
- Throws:
ChainedJsonException
-
parsePassNode
private void parsePassNode(TextureManager p_110031_, com.google.gson.JsonElement p_110032_) throws IOException - Throws:
IOException
-
parseUniformNode
- Throws:
ChainedJsonException
-
getTempTarget
-
addTempTarget
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
addPass
public PostPass addPass(String pName, RenderTarget pInTarget, RenderTarget pOutTarget, boolean pUseLinearFilter) throws IOException - Throws:
IOException
-
updateOrthoMatrix
private void updateOrthoMatrix() -
resize
public void resize(int pWidth, int pHeight) -
setFilterMode
private void setFilterMode(int pFilterMode) -
process
public void process(float pPartialTicks) -
setUniform
-
getName
-
getRenderTarget
-