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 pTextureManager, ResourceProvider pResourceProvider, RenderTarget pScreenTarget, ResourceLocation pResourceLocation) -
Method Summary
Modifier and TypeMethodDescriptionaddPass(String pName, RenderTarget pInTarget, RenderTarget pOutTarget, boolean pUseLinearFilter) voidaddTempTarget(String pName, int pWidth, int pHeight) voidclose()final StringgetName()private RenderTargetgetRenderTarget(String pTarget) getTempTarget(String pAttributeName) private voidload(TextureManager pTextureManager, ResourceLocation pResourceLocation) private voidparsePassNode(TextureManager pTextureManager, JsonElement pJson) private voidparseTargetNode(JsonElement pJson) private voidparseUniformNode(JsonElement pJson) voidprocess(float pPartialTicks) voidresize(int pWidth, int pHeight) private voidsetFilterMode(int pFilterMode) voidsetUniform(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, JsonSyntaxException - Throws:
IOExceptionJsonSyntaxException
-
-
Method Details
-
load
private void load(TextureManager pTextureManager, ResourceLocation pResourceLocation) throws IOException, JsonSyntaxException - Throws:
IOExceptionJsonSyntaxException
-
parseTargetNode
- Throws:
ChainedJsonException
-
parsePassNode
- Throws:
IOException
-
parseUniformNode
- Throws:
ChainedJsonException
-
getTempTarget
-
addTempTarget
-
close
public void close()- Specified by:
closein 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
-