public class ShaderGroup
extends java.lang.Object
implements java.lang.AutoCloseable
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 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 |
close() |
void |
createBindFramebuffers(int width,
int height) |
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) |
private 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 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 java.io.IOException, com.google.gson.JsonSyntaxException
java.io.IOException
com.google.gson.JsonSyntaxException
private void parseGroup(TextureManager p_152765_1_, ResourceLocation p_152765_2_) throws java.io.IOException, com.google.gson.JsonSyntaxException
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 java.io.IOException
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 close()
close
in interface java.lang.AutoCloseable
public Shader addShader(java.lang.String programName, Framebuffer framebufferIn, Framebuffer framebufferOut) throws java.io.IOException
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_)