net.minecraft.client.renderer

public class ShaderInstance

implements Shader, AutoCloseable

gfn
net.minecraft.client.renderer.ShaderInstance
net.minecraft.class_5944
net.minecraft.client.gl.ShaderProgram
net.minecraft.src.C_141721_

Field summary

Modifier and TypeField
public static final String
a
SHADER_PATH
field_32778
SHADERS_DIRECTORY
f_173321_
private static final String
q
SHADER_CORE_PATH
field_40512
CORE_DIRECTORY
f_244364_
private static final String
r
SHADER_INCLUDE_PATH
field_32779
INCLUDE_DIRECTORY
f_173322_
static final org.slf4j.Logger
s
LOGGER
field_29483
LOGGER
f_173323_
private static final AbstractUniform
t
DUMMY_UNIFORM
field_29484
DEFAULT_UNIFORM
f_173324_
private static final boolean
u
ALWAYS_REAPPLY
field_32780
field_32780
f_173325_
private static ShaderInstance
v
lastAppliedShader
field_29485
activeProgram
f_173326_
private static int
w
lastProgramId
field_29486
activeProgramGlRef
f_173327_
private final Map<String, Object>
x
samplerMap
field_29487
samplers
f_173328_
private final List<String>
y
samplerNames
field_29488
samplerNames
f_173329_
private final List<Integer>
z
samplerLocations
field_29489
loadedSamplerIds
f_173330_
private final List<Uniform>
A
uniforms
field_29490
uniforms
f_173331_
private final List<Integer>
B
uniformLocations
field_29491
loadedUniformIds
f_173332_
private final Map<String, Uniform>
C
uniformMap
field_29492
loadedUniforms
f_173333_
private final int
D
programId
field_29493
glRef
f_173299_
private final String
E
name
field_29494
name
f_173300_
private boolean
F
dirty
field_29495
dirty
f_173301_
private final Program
G
vertexProgram
field_29467
vertexShader
f_173305_
private final Program
H
fragmentProgram
field_29468
fragmentShader
f_173306_
private final VertexFormat
I
vertexFormat
field_29469
format
f_173307_
public final Uniform
b
MODEL_VIEW_MATRIX
field_29470
modelViewMat
f_173308_
public final Uniform
c
PROJECTION_MATRIX
field_29471
projectionMat
f_173309_
public final Uniform
d
TEXTURE_MATRIX
field_29472
textureMat
f_173310_
public final Uniform
e
SCREEN_SIZE
field_29473
screenSize
f_173311_
public final Uniform
f
COLOR_MODULATOR
field_29474
colorModulator
f_173312_
public final Uniform
g
LIGHT0_DIRECTION
field_29475
light0Direction
f_173313_
public final Uniform
h
LIGHT1_DIRECTION
field_29476
light1Direction
f_173314_
public final Uniform
i
GLINT_ALPHA
field_42231
glintAlpha
f_267422_
public final Uniform
j
FOG_START
field_29477
fogStart
f_173315_
public final Uniform
k
FOG_END
field_29478
fogEnd
f_173316_
public final Uniform
l
FOG_COLOR
field_29479
fogColor
f_173317_
public final Uniform
m
FOG_SHAPE
field_36373
fogShape
f_202432_
public final Uniform
n
LINE_WIDTH
field_29480
lineWidth
f_173318_
public final Uniform
o
GAME_TIME
field_29481
gameTime
f_173319_
public final Uniform
p
CHUNK_OFFSET
field_29482
chunkOffset
f_173320_

Constructor summary

ModifierConstructor
public (ResourceProvider factory, String name, VertexFormat format)

Method summary

Modifier and TypeMethod
private static Program
a(auh arg0, faw$a arg1, String arg2)
getOrCreate(ResourceProvider arg0, Program$Type arg1, String arg2)
method_34579(class_5912 arg0, class_281$class_282 arg1, String arg2)
loadShader(ResourceFactory factory, ShaderStage$Type type, String name)
m_173340_(C_140974_ p_173341_, C_3169_$C_3170_ p_173342_, String p_173343_)
public void
close()
close()
close()
public void
f()
clear()
method_34585()
unbind()
m_173362_()
public void
g()
apply()
method_34586()
bind()
m_173363_()
public void
b()
markDirty()
method_1279()
markUniformsDirty()
m_108957_()
public Uniform
a(String arg0)
getUniform(String arg0)
method_34582(String arg0)
getUniform(String name)
m_173348_(String arg0)
public AbstractUniform
b(String arg0)
safeGetUniform(String arg0)
method_35785(String arg0)
getUniformOrDefault(String name)
m_173356_(String arg0)
private void
j()
updateLocations()
method_34588()
loadReferences()
m_173366_()
private void
a(com.google.gson.JsonElement arg0)
parseSamplerNode(com.google.gson.JsonElement arg0)
method_34580(com.google.gson.JsonElement arg0)
readSampler(com.google.gson.JsonElement json)
m_173344_(com.google.gson.JsonElement arg0)
public void
a(String arg0, Object arg1)
setSampler(String arg0, Object arg1)
method_34583(String arg0, Object arg1)
addSampler(String name, Object sampler)
m_173350_(String p_173352_, Object arg1)
private void
b(com.google.gson.JsonElement arg0)
parseUniformNode(com.google.gson.JsonElement arg0)
method_34584(com.google.gson.JsonElement arg0)
addUniform(com.google.gson.JsonElement json)
m_173354_(com.google.gson.JsonElement arg0)
public Program
c()
getVertexProgram()
method_1274()
getVertexShader()
m_108962_()
public Program
d()
getFragmentProgram()
method_1278()
getFragmentShader()
m_108964_()
public void
e()
attachToProgram()
method_34418()
attachReferencedShaders()
m_142662_()
public VertexFormat
h()
getVertexFormat()
method_35786()
getFormat()
m_173364_()
public String
i()
getName()
method_35787()
getName()
m_173365_()
public int
a()
getId()
method_1270()
getGlRef()
m_108943_()
public void
a(fbn$c arg0, org.joml.Matrix4f arg1, org.joml.Matrix4f arg2, fam 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)
m_340471_(C_3188_$C_141549_ p_342135_, org.joml.Matrix4f p_342482_, org.joml.Matrix4f p_344313_, C_3161_ arg3)