Package net.minecraft.client.shader
Class ShaderGroup
java.lang.Object
net.minecraft.client.shader.ShaderGroup
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<String,
Framebuffer> private final List<Framebuffer>
private float
private final String
private final IResourceManager
private int
private final Framebuffer
private int
private Matrix4f
private float
-
Constructor Summary
ConstructorDescriptionShaderGroup
(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_) void
addTempTarget
(String p_148020_1_, int p_148020_2_, int p_148020_3_) void
close()
final String
getName()
private Framebuffer
getRenderTarget
(String p_148017_1_) getTempTarget
(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
-
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:
IOException
com.google.gson.JsonSyntaxException
-
-
Method Details
-
load
private void load(TextureManager p_152765_1_, ResourceLocation p_152765_2_) throws IOException, com.google.gson.JsonSyntaxException - Throws:
IOException
com.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:
close
in 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
-