Package net.minecraft.client.gl
Class PostProcessShader
java.lang.Object
net.minecraft.client.gl.PostProcessShader
- All Implemented Interfaces:
AutoCloseable
@Environment(CLIENT) public class PostProcessShader extends Object implements AutoCloseable
-
Field Summary
Fields Modifier and Type Field Description FramebufferinputFramebufferoutputprivate JsonGlProgramprogramprivate Matrix4fprojectionMatrixprivate List<Integer>samplerHeightsprivate List<String>samplerNamesprivate List<IntSupplier>samplerValuesprivate List<Integer>samplerWidths -
Constructor Summary
Constructors Constructor Description PostProcessShader(ResourceManager resourceManager, String programName, Framebuffer input, Framebuffer output) -
Method Summary
Modifier and Type Method Description voidaddAuxTarget(String name, IntSupplier intSupplier, int width, int height)voidclose()JsonGlProgramgetProgram()voidrender(float time)voidsetProjectionMatrix(Matrix4f projectionMatrix)
-
Field Details
-
program
-
input
-
output
-
samplerValues
-
samplerNames
-
samplerWidths
-
samplerHeights
-
projectionMatrix
-
-
Constructor Details
-
PostProcessShader
public PostProcessShader(ResourceManager resourceManager, String programName, Framebuffer input, Framebuffer output) throws IOException- Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
addAuxTarget
-
setProjectionMatrix
-
render
public void render(float time) -
getProgram
-