Class ShaderProgramImpl.Wrapper
java.lang.Object
net.minecraft.client.renderer.ShaderInstance
foundry.veil.impl.client.render.shader.ShaderProgramImpl.Wrapper
- All Implemented Interfaces:
com.mojang.blaze3d.shaders.Shader
,AutoCloseable
- Enclosing class:
ShaderProgramImpl
public static class ShaderProgramImpl.Wrapper
extends net.minecraft.client.renderer.ShaderInstance
-
Field Summary
Fields inherited from class net.minecraft.client.renderer.ShaderInstance
CHUNK_OFFSET, COLOR_MODULATOR, FOG_COLOR, FOG_END, FOG_SHAPE, FOG_START, GAME_TIME, GLINT_ALPHA, LIGHT0_DIRECTION, LIGHT1_DIRECTION, LINE_WIDTH, MODEL_VIEW_MATRIX, PROJECTION_MATRIX, SCREEN_SIZE, SHADER_PATH, TEXTURE_MATRIX, uniformMap
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply()
void
void
clear()
void
close()
@Nullable ShaderProgramImpl.UniformWrapper
getUniform
(String name) void
program()
void
setSampler
(String name, Object value) Methods inherited from class net.minecraft.client.renderer.ShaderInstance
getFragmentProgram, getId, getName, getVertexFormat, getVertexProgram, safeGetUniform, setDefaultUniforms
-
Field Details
-
constructing
public static boolean constructing
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classnet.minecraft.client.renderer.ShaderInstance
-
clear
public void clear()- Overrides:
clear
in classnet.minecraft.client.renderer.ShaderInstance
-
apply
public void apply()- Overrides:
apply
in classnet.minecraft.client.renderer.ShaderInstance
-
attachToProgram
public void attachToProgram()- Specified by:
attachToProgram
in interfacecom.mojang.blaze3d.shaders.Shader
- Overrides:
attachToProgram
in classnet.minecraft.client.renderer.ShaderInstance
-
markDirty
public void markDirty()- Specified by:
markDirty
in interfacecom.mojang.blaze3d.shaders.Shader
- Overrides:
markDirty
in classnet.minecraft.client.renderer.ShaderInstance
-
getUniform
- Overrides:
getUniform
in classnet.minecraft.client.renderer.ShaderInstance
-
setSampler
- Overrides:
setSampler
in classnet.minecraft.client.renderer.ShaderInstance
-
program
- Returns:
- The backing shader program
-