Package net.minecraft.client.shader
Class Shader
java.lang.Object
net.minecraft.client.shader.Shader
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<IntSupplier>
private final ShaderInstance
final Framebuffer
final Framebuffer
private Matrix4f
-
Constructor Summary
ConstructorDescriptionShader
(IResourceManager p_i45089_1_, String p_i45089_2_, Framebuffer p_i45089_3_, Framebuffer p_i45089_4_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAuxAsset
(String p_148041_1_, IntSupplier p_148041_2_, int p_148041_3_, int p_148041_4_) void
close()
void
process
(float p_148042_1_) void
setOrthoMatrix
(Matrix4f p_195654_1_)
-
Field Details
-
effect
-
inTarget
-
outTarget
-
auxAssets
-
auxNames
-
auxWidths
-
auxHeights
-
shaderOrthoMatrix
-
-
Constructor Details
-
Shader
public Shader(IResourceManager p_i45089_1_, String p_i45089_2_, Framebuffer p_i45089_3_, Framebuffer p_i45089_4_) throws IOException - Throws:
IOException
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
addAuxAsset
public void addAuxAsset(String p_148041_1_, IntSupplier p_148041_2_, int p_148041_3_, int p_148041_4_) -
setOrthoMatrix
-
process
public void process(float p_148042_1_) -
getEffect
-