Package net.minecraft.client.shader
Class ShaderGroup
java.lang.Object
net.minecraft.client.shader.ShaderGroup
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String,Framebuffer> private final List<Framebuffer>private floatprivate final Stringprivate final IResourceManagerprivate intprivate final Framebufferprivate intprivate Matrix4fprivate float -
Constructor Summary
ConstructorsConstructorDescriptionShaderGroup(TextureManager p_i1050_1_, IResourceManager p_i1050_2_, Framebuffer p_i1050_3_, ResourceLocation p_i1050_4_) -
Method Summary
Modifier and TypeMethodDescriptionaddPass(String p_148023_1_, Framebuffer p_148023_2_, Framebuffer p_148023_3_) voidaddTempTarget(String p_148020_1_, int p_148020_2_, int p_148020_3_) voidclose()final StringgetName()private FramebuffergetRenderTarget(String p_148017_1_) getTempTarget(String p_177066_1_) private voidload(TextureManager p_152765_1_, ResourceLocation p_152765_2_) private voidparsePassNode(TextureManager p_152764_1_, com.google.gson.JsonElement p_152764_2_) private voidparseTargetNode(com.google.gson.JsonElement p_148027_1_) private voidparseUniformNode(com.google.gson.JsonElement p_148028_1_) voidprocess(float p_148018_1_) voidresize(int p_148026_1_, int p_148026_2_) private void
-
Field Details
-
screenTarget
-
resourceManager
-
name
-
passes
-
customRenderTargets
-
fullSizedTargets
-
shaderOrthoMatrix
-
screenWidth
private int screenWidth -
screenHeight
private int screenHeight -
time
private float time -
lastStamp
private float lastStamp
-
-
Constructor Details
-
ShaderGroup
public ShaderGroup(TextureManager p_i1050_1_, IResourceManager p_i1050_2_, Framebuffer p_i1050_3_, ResourceLocation p_i1050_4_) throws IOException, com.google.gson.JsonSyntaxException - Throws:
IOExceptioncom.google.gson.JsonSyntaxException
-
-
Method Details
-
load
private void load(TextureManager p_152765_1_, ResourceLocation p_152765_2_) throws IOException, com.google.gson.JsonSyntaxException - Throws:
IOExceptioncom.google.gson.JsonSyntaxException
-
parseTargetNode
- Throws:
JSONException
-
parsePassNode
private void parsePassNode(TextureManager p_152764_1_, com.google.gson.JsonElement p_152764_2_) throws IOException - Throws:
IOException
-
parseUniformNode
- Throws:
JSONException
-
getTempTarget
-
addTempTarget
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
addPass
public Shader addPass(String p_148023_1_, Framebuffer p_148023_2_, Framebuffer p_148023_3_) throws IOException - Throws:
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
-
getRenderTarget
-