public class Shader
extends java.lang.Object
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 ShaderManager |
manager |
private org.lwjgl.util.vector.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 |
deleteShader() |
ShaderManager |
getShaderManager() |
private void |
preRender() |
void |
render(float partialTicks) |
void |
setProjectionMatrix(org.lwjgl.util.vector.Matrix4f projectionMatrixIn) |
private final ShaderManager 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 org.lwjgl.util.vector.Matrix4f projectionMatrix
public Shader(IResourceManager resourceManager, java.lang.String programName, Framebuffer framebufferInIn, Framebuffer framebufferOutIn) throws JsonException, java.io.IOException
JsonException
java.io.IOException
public void deleteShader()
public void addAuxFramebuffer(java.lang.String auxName, java.lang.Object auxFramebufferIn, int width, int height)
private void preRender()
public void setProjectionMatrix(org.lwjgl.util.vector.Matrix4f projectionMatrixIn)
public void render(float partialTicks)
public ShaderManager getShaderManager()