@Environment(value=CLIENT) public class PostProcessShader extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
Framebuffer |
input |
Framebuffer |
output |
private JsonGlProgram |
program |
private Matrix4f |
projectionMatrix |
private List<Integer> |
samplerHeights |
private List<String> |
samplerNames |
private List<IntSupplier> |
samplerValues |
private List<Integer> |
samplerWidths |
| Constructor and Description |
|---|
PostProcessShader(ResourceManager resourceManager,
String programName,
Framebuffer input,
Framebuffer output) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAuxTarget(String name,
IntSupplier intSupplier,
int width,
int height) |
void |
close() |
JsonGlProgram |
getProgram() |
void |
render(float time) |
void |
setProjectionMatrix(Matrix4f projectionMatrix) |
private final JsonGlProgram program
public final Framebuffer input
public final Framebuffer output
private final List<IntSupplier> samplerValues
private Matrix4f projectionMatrix
public PostProcessShader(ResourceManager resourceManager, String programName, Framebuffer input, Framebuffer output) throws IOException
IOExceptionpublic void close()
close in interface AutoCloseablepublic void addAuxTarget(String name, IntSupplier intSupplier, int width, int height)
public void setProjectionMatrix(Matrix4f projectionMatrix)
public void render(float time)
public JsonGlProgram getProgram()