Package net.minecraft.client.shader
Class ShaderGroup
- java.lang.Object
-
- net.minecraft.client.shader.ShaderGroup
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class ShaderGroup extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,Framebuffer>
customRenderTargets
private java.util.List<Framebuffer>
fullSizedTargets
private float
lastStamp
private java.lang.String
name
private java.util.List<Shader>
passes
private IResourceManager
resourceManager
private int
screenHeight
private Framebuffer
screenTarget
private int
screenWidth
private Matrix4f
shaderOrthoMatrix
private float
time
-
Constructor Summary
Constructors Constructor Description ShaderGroup(TextureManager p_i1050_1_, IResourceManager p_i1050_2_, Framebuffer p_i1050_3_, ResourceLocation p_i1050_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Shader
addPass(java.lang.String p_148023_1_, Framebuffer p_148023_2_, Framebuffer p_148023_3_)
void
addTempTarget(java.lang.String p_148020_1_, int p_148020_2_, int p_148020_3_)
void
close()
java.lang.String
getName()
private Framebuffer
getRenderTarget(java.lang.String p_148017_1_)
Framebuffer
getTempTarget(java.lang.String p_177066_1_)
private void
load(TextureManager p_152765_1_, ResourceLocation p_152765_2_)
private void
parsePassNode(TextureManager p_152764_1_, com.google.gson.JsonElement p_152764_2_)
private void
parseTargetNode(com.google.gson.JsonElement p_148027_1_)
private void
parseUniformNode(com.google.gson.JsonElement p_148028_1_)
void
process(float p_148018_1_)
void
resize(int p_148026_1_, int p_148026_2_)
private void
updateOrthoMatrix()
-
-
-
Field Detail
-
screenTarget
private final Framebuffer screenTarget
-
resourceManager
private final IResourceManager resourceManager
-
name
private final java.lang.String name
-
passes
private final java.util.List<Shader> passes
-
customRenderTargets
private final java.util.Map<java.lang.String,Framebuffer> customRenderTargets
-
fullSizedTargets
private final java.util.List<Framebuffer> fullSizedTargets
-
shaderOrthoMatrix
private Matrix4f shaderOrthoMatrix
-
screenWidth
private int screenWidth
-
screenHeight
private int screenHeight
-
time
private float time
-
lastStamp
private float lastStamp
-
-
Constructor Detail
-
ShaderGroup
public ShaderGroup(TextureManager p_i1050_1_, IResourceManager p_i1050_2_, Framebuffer p_i1050_3_, ResourceLocation p_i1050_4_) throws java.io.IOException, com.google.gson.JsonSyntaxException
- Throws:
java.io.IOException
com.google.gson.JsonSyntaxException
-
-
Method Detail
-
load
private void load(TextureManager p_152765_1_, ResourceLocation p_152765_2_) throws java.io.IOException, com.google.gson.JsonSyntaxException
- Throws:
java.io.IOException
com.google.gson.JsonSyntaxException
-
parseTargetNode
private void parseTargetNode(com.google.gson.JsonElement p_148027_1_) throws JSONException
- Throws:
JSONException
-
parsePassNode
private void parsePassNode(TextureManager p_152764_1_, com.google.gson.JsonElement p_152764_2_) throws java.io.IOException
- Throws:
java.io.IOException
-
parseUniformNode
private void parseUniformNode(com.google.gson.JsonElement p_148028_1_) throws JSONException
- Throws:
JSONException
-
getTempTarget
public Framebuffer getTempTarget(java.lang.String p_177066_1_)
-
addTempTarget
public void addTempTarget(java.lang.String p_148020_1_, int p_148020_2_, int p_148020_3_)
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
addPass
public Shader addPass(java.lang.String p_148023_1_, Framebuffer p_148023_2_, Framebuffer p_148023_3_) throws java.io.IOException
- Throws:
java.io.IOException
-
updateOrthoMatrix
private void updateOrthoMatrix()
-
resize
public void resize(int p_148026_1_, int p_148026_2_)
-
process
public void process(float p_148018_1_)
-
getName
public final java.lang.String getName()
-
getRenderTarget
private Framebuffer getRenderTarget(java.lang.String p_148017_1_)
-
-