net.minecraft.client.renderer

public class CompiledShaderProgram

implements AutoCloseable

glj
net.minecraft.client.renderer.CompiledShaderProgram
net.minecraft.class_5944
net.minecraft.client.gl.ShaderProgram

Field summary

Modifier and TypeField
private static final AbstractUniform
p
DUMMY_UNIFORM
field_29484
DEFAULT_UNIFORM
private static final int
q
NO_SAMPLER_TEXTURE
field_53837
field_53837
private final List<ShaderProgramConfig$Sampler>
r
samplers
field_53838
samplers
private final it.unimi.dsi.fastutil.objects.Object2IntMap<String>
s
samplerTextures
field_53839
samplerTextures
private final it.unimi.dsi.fastutil.ints.IntList
t
samplerLocations
field_53840
samplerLocations
private final List<Uniform>
u
uniforms
field_29490
uniforms
private final Map<String, Uniform>
v
uniformsByName
field_53841
uniformsByName
private final Map<String, ShaderProgramConfig$Uniform>
w
uniformConfigs
field_54926
uniformDefinitionsByName
private final int
x
programId
field_29493
glRef
public Uniform
a
MODEL_VIEW_MATRIX
field_29470
modelViewMat
public Uniform
b
PROJECTION_MATRIX
field_29471
projectionMat
public Uniform
c
TEXTURE_MATRIX
field_29472
textureMat
public Uniform
d
SCREEN_SIZE
field_29473
screenSize
public Uniform
e
COLOR_MODULATOR
field_29474
colorModulator
public Uniform
f
LIGHT0_DIRECTION
field_29475
light0Direction
public Uniform
g
LIGHT1_DIRECTION
field_29476
light1Direction
public Uniform
h
GLINT_ALPHA
field_42231
glintAlpha
public Uniform
i
FOG_START
field_29477
fogStart
public Uniform
j
FOG_END
field_29478
fogEnd
public Uniform
k
FOG_COLOR
field_29479
fogColor
public Uniform
l
FOG_SHAPE
field_36373
fogShape
public Uniform
m
LINE_WIDTH
field_29480
lineWidth
public Uniform
n
GAME_TIME
field_29481
gameTime
public Uniform
o
MODEL_OFFSET
field_53139
modelOffset

Constructor summary

ModifierConstructor
private (int glRef)

Method summary

Modifier and TypeMethod
public static CompiledShaderProgram
a(ffk arg0, ffk arg1, fga arg2)
link(CompiledShader arg0, CompiledShader arg1, VertexFormat arg2)
method_62896(class_10141 arg0, class_10141 arg1, class_293 arg2)
create(CompiledShader vertexShader, CompiledShader fragmentShader, VertexFormat format)
public void
a(List<gms$b> arg0, List<gms$a> arg1)
setupUniforms(List<ShaderProgramConfig$Uniform> arg0, List<ShaderProgramConfig$Sampler> arg1)
method_62900(List<class_10157$class_10159> arg0, List<class_10157$class_10158> arg1)
set(List<ShaderProgramDefinition$Uniform> uniforms, List<ShaderProgramDefinition$Sampler> samplers)
public void
close()
close()
public void
a()
clear()
method_34585()
unbind()
public void
b()
apply()
method_34586()
bind()
public Uniform
a(String arg0)
getUniform(String arg0)
method_34582(String arg0)
getUniform(String name)
public ShaderProgramConfig$Uniform
b(String arg0)
getUniformConfig(String arg0)
method_65028(String arg0)
getUniformDefinition(String name)
public AbstractUniform
c(String arg0)
safeGetUniform(String arg0)
method_35785(String arg0)
getUniformOrDefault(String name)
public void
a(String arg0, int arg1)
bindSampler(String arg0, int arg1)
method_62899(String arg0, int arg1)
addSamplerTexture(String name, int texture)
private Uniform
a(gms$b arg0)
parseUniformNode(ShaderProgramConfig$Uniform arg0)
method_62898(class_10157$class_10159 arg0)
createGlUniform(ShaderProgramDefinition$Uniform uniform)
public void
a(fga$c arg0, org.joml.Matrix4f arg1, org.joml.Matrix4f arg2, fey arg3)
setDefaultUniforms(VertexFormat$Mode arg0, org.joml.Matrix4f arg1, org.joml.Matrix4f arg2, Window arg3)
method_60897(class_293$class_5596 arg0, org.joml.Matrix4f arg1, org.joml.Matrix4f arg2, class_1041 arg3)
initializeUniforms(VertexFormat$DrawMode drawMode, org.joml.Matrix4f viewMatrix, org.joml.Matrix4f projectionMatrix, Window window)
public void
a(ffm arg0)
registerUniform(Uniform arg0)
method_62897(class_284 arg0)
addUniform(GlUniform uniform)
public int
c()
getProgramId()
method_1270()
getGlRef()