public class Shader
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
Framebuffer |
framebufferIn |
Framebuffer |
framebufferOut |
private java.util.List<java.lang.Object> |
listAuxFramebuffers |
private java.util.List<java.lang.Integer> |
listAuxHeights |
private java.util.List<java.lang.String> |
listAuxNames |
private java.util.List<java.lang.Integer> |
listAuxWidths |
private ShaderInstance |
manager |
private Matrix4f |
projectionMatrix |
Constructor and Description |
---|
Shader(IResourceManager resourceManager,
java.lang.String programName,
Framebuffer framebufferInIn,
Framebuffer framebufferOutIn) |
Modifier and Type | Method and Description |
---|---|
void |
addAuxFramebuffer(java.lang.String auxName,
java.lang.Object auxFramebufferIn,
int width,
int height) |
void |
close() |
ShaderInstance |
getShaderManager() |
void |
render(float partialTicks) |
void |
setProjectionMatrix(Matrix4f p_195654_1_) |
private final ShaderInstance manager
public final Framebuffer framebufferIn
public final Framebuffer framebufferOut
private final java.util.List<java.lang.Object> listAuxFramebuffers
private final java.util.List<java.lang.String> listAuxNames
private final java.util.List<java.lang.Integer> listAuxWidths
private final java.util.List<java.lang.Integer> listAuxHeights
private Matrix4f projectionMatrix
public Shader(IResourceManager resourceManager, java.lang.String programName, Framebuffer framebufferInIn, Framebuffer framebufferOutIn) throws java.io.IOException
java.io.IOException
public void close()
close
in interface java.lang.AutoCloseable
public void addAuxFramebuffer(java.lang.String auxName, java.lang.Object auxFramebufferIn, int width, int height)
public void setProjectionMatrix(Matrix4f p_195654_1_)
public void render(float partialTicks)
public ShaderInstance getShaderManager()