Package net.minecraft.client.shader
Class Shader
- java.lang.Object
-
- net.minecraft.client.shader.Shader
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Shader extends java.lang.Object implements java.lang.AutoCloseable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.util.function.IntSupplier>
auxAssets
private java.util.List<java.lang.Integer>
auxHeights
private java.util.List<java.lang.String>
auxNames
private java.util.List<java.lang.Integer>
auxWidths
private ShaderInstance
effect
Framebuffer
inTarget
Framebuffer
outTarget
private Matrix4f
shaderOrthoMatrix
-
Constructor Summary
Constructors Constructor Description Shader(IResourceManager p_i45089_1_, java.lang.String p_i45089_2_, Framebuffer p_i45089_3_, Framebuffer p_i45089_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAuxAsset(java.lang.String p_148041_1_, java.util.function.IntSupplier p_148041_2_, int p_148041_3_, int p_148041_4_)
void
close()
ShaderInstance
getEffect()
void
process(float p_148042_1_)
void
setOrthoMatrix(Matrix4f p_195654_1_)
-
-
-
Field Detail
-
effect
private final ShaderInstance effect
-
inTarget
public final Framebuffer inTarget
-
outTarget
public final Framebuffer outTarget
-
auxAssets
private final java.util.List<java.util.function.IntSupplier> auxAssets
-
auxNames
private final java.util.List<java.lang.String> auxNames
-
auxWidths
private final java.util.List<java.lang.Integer> auxWidths
-
auxHeights
private final java.util.List<java.lang.Integer> auxHeights
-
shaderOrthoMatrix
private Matrix4f shaderOrthoMatrix
-
-
Constructor Detail
-
Shader
public Shader(IResourceManager p_i45089_1_, java.lang.String p_i45089_2_, Framebuffer p_i45089_3_, Framebuffer p_i45089_4_) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
addAuxAsset
public void addAuxAsset(java.lang.String p_148041_1_, java.util.function.IntSupplier p_148041_2_, int p_148041_3_, int p_148041_4_)
-
setOrthoMatrix
public void setOrthoMatrix(Matrix4f p_195654_1_)
-
process
public void process(float p_148042_1_)
-
getEffect
public ShaderInstance getEffect()
-
-