public class ShaderGroup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private float |
lastStamp |
private java.util.List<Framebuffer> |
listFramebuffers |
private java.util.List<Shader> |
listShaders |
private Framebuffer |
mainFramebuffer |
private int |
mainFramebufferHeight |
private int |
mainFramebufferWidth |
private java.util.Map<java.lang.String,Framebuffer> |
mapFramebuffers |
private org.lwjgl.util.vector.Matrix4f |
projectionMatrix |
private IResourceManager |
resourceManager |
private java.lang.String |
shaderGroupName |
private float |
time |
Constructor and Description |
---|
ShaderGroup(TextureManager p_i1050_1_,
IResourceManager resourceManagerIn,
Framebuffer mainFramebufferIn,
ResourceLocation p_i1050_4_) |
Modifier and Type | Method and Description |
---|---|
void |
addFramebuffer(java.lang.String name,
int width,
int height) |
Shader |
addShader(java.lang.String programName,
Framebuffer framebufferIn,
Framebuffer framebufferOut) |
void |
createBindFramebuffers(int width,
int height) |
void |
deleteShaderGroup() |
private Framebuffer |
getFramebuffer(java.lang.String p_148017_1_) |
Framebuffer |
getFramebufferRaw(java.lang.String attributeName) |
java.lang.String |
getShaderGroupName() |
private void |
initTarget(com.google.gson.JsonElement p_148027_1_) |
private void |
initUniform(com.google.gson.JsonElement json) |
void |
parseGroup(TextureManager p_152765_1_,
ResourceLocation p_152765_2_) |
private void |
parsePass(TextureManager p_152764_1_,
com.google.gson.JsonElement json) |
void |
render(float partialTicks) |
private void |
resetProjectionMatrix() |
private final Framebuffer mainFramebuffer
private final IResourceManager resourceManager
private final java.lang.String shaderGroupName
private final java.util.List<Shader> listShaders
private final java.util.Map<java.lang.String,Framebuffer> mapFramebuffers
private final java.util.List<Framebuffer> listFramebuffers
private org.lwjgl.util.vector.Matrix4f projectionMatrix
private int mainFramebufferWidth
private int mainFramebufferHeight
private float time
private float lastStamp
public ShaderGroup(TextureManager p_i1050_1_, IResourceManager resourceManagerIn, Framebuffer mainFramebufferIn, ResourceLocation p_i1050_4_) throws JsonException, java.io.IOException, com.google.gson.JsonSyntaxException
JsonException
java.io.IOException
com.google.gson.JsonSyntaxException
public void parseGroup(TextureManager p_152765_1_, ResourceLocation p_152765_2_) throws JsonException, java.io.IOException, com.google.gson.JsonSyntaxException
JsonException
java.io.IOException
com.google.gson.JsonSyntaxException
private void initTarget(com.google.gson.JsonElement p_148027_1_) throws JsonException
JsonException
private void parsePass(TextureManager p_152764_1_, com.google.gson.JsonElement json) throws JsonException, java.io.IOException
JsonException
java.io.IOException
private void initUniform(com.google.gson.JsonElement json) throws JsonException
JsonException
public Framebuffer getFramebufferRaw(java.lang.String attributeName)
public void addFramebuffer(java.lang.String name, int width, int height)
public void deleteShaderGroup()
public Shader addShader(java.lang.String programName, Framebuffer framebufferIn, Framebuffer framebufferOut) throws JsonException, java.io.IOException
JsonException
java.io.IOException
private void resetProjectionMatrix()
public void createBindFramebuffers(int width, int height)
public void render(float partialTicks)
public final java.lang.String getShaderGroupName()
private Framebuffer getFramebuffer(java.lang.String p_148017_1_)