net.minecraft.client.renderer

public class ShaderInstance

implements Shader, AutoCloseable

ftv
net.minecraft.client.renderer.ShaderInstance
net.minecraft.class_5944
net.minecraft.unmapped.C_alllhitb
net.minecraft.client.gl.ShaderProgram
net.minecraft.client.render.ShaderProgram
net.minecraft.src.C_141721_

Field summary

Modifier and TypeField
public static final String
a
SHADER_PATH
field_32778
f_nseanlgh
SHADERS_DIRECTORY
SHADERS_DIRECTORY
f_173321_
private static final String
r
SHADER_CORE_PATH
field_40512
f_zlyurwmi
CORE_DIRECTORY
CORE_DIRECTORY
f_244364_
private static final String
s
SHADER_INCLUDE_PATH
field_32779
f_auojbhyj
INCLUDE_DIRECTORY
INCLUDE_DIRECTORY
f_173322_
static final org.slf4j.Logger
t
LOGGER
field_29483
f_ngkwluku
LOGGER
LOGGER
f_173323_
private static final AbstractUniform
u
DUMMY_UNIFORM
field_29484
f_pmxtexvu
DEFAULT_UNIFORM
DEFAULT_UNIFORM
f_173324_
private static final boolean
v
ALWAYS_REAPPLY
field_32780
f_wnxyzruk
field_32780
ALWAYS_REAPPLY_SHADERS
f_173325_
private static ShaderInstance
w
lastAppliedShader
field_29485
f_zvjnyqlv
activeProgram
activeShaderProgram
f_173326_
private static int
x
lastProgramId
field_29486
f_tthwuksw
activeProgramGlRef
currentProgramId
f_173327_
private final Map<String, Object>
y
samplerMap
field_29487
f_ogrhsecd
samplers
samplers
f_173328_
private final List<String>
z
samplerNames
field_29488
f_kxisllqb
samplerNames
samplerNames
f_173329_
private final List<Integer>
A
samplerLocations
field_29489
f_qfmfonvb
loadedSamplerIds
loadedSamplerIds
f_173330_
private final List<Uniform>
B
uniforms
field_29490
f_julhexyu
uniforms
uniforms
f_173331_
private final List<Integer>
C
uniformLocations
field_29491
f_muwxveth
loadedUniformIds
loadedUniformIds
f_173332_
private final Map<String, Uniform>
D
uniformMap
field_29492
f_tnfytbuw
loadedUniforms
loadedUniforms
f_173333_
private final int
E
programId
field_29493
f_hciufisj
glRef
programId
f_173299_
private final String
F
name
field_29494
f_ttnhztpa
name
name
f_173300_
private boolean
G
dirty
field_29495
f_rdyyhbwq
dirty
dirty
f_173301_
private final BlendMode
H
blend
field_29464
f_ioikregb
blendState
blendState
f_173302_
private final List<Integer>
I
attributes
field_29465
f_tdbvuszq
loadedAttributeIds
loadedAttributeIds
f_173303_
private final List<String>
J
attributeNames
field_29466
f_auytjcic
attributeNames
attributeNames
f_173304_
private final Program
K
vertexProgram
field_29467
f_cvyltelc
vertexShader
vertexShader
f_173305_
private final Program
L
fragmentProgram
field_29468
f_nyzjyyjc
fragmentShader
fragmentShader
f_173306_
private final VertexFormat
M
vertexFormat
field_29469
f_igovazvd
format
format
f_173307_
public final Uniform
b
MODEL_VIEW_MATRIX
field_29470
f_tzaolglx
modelViewMat
modelViewMat
f_173308_
public final Uniform
c
PROJECTION_MATRIX
field_29471
f_iqraagyd
projectionMat
projectionMat
f_173309_
public final Uniform
d
INVERSE_VIEW_ROTATION_MATRIX
field_36323
f_xorpnwqy
viewRotationMat
inverseViewRotationMat
f_200956_
public final Uniform
e
TEXTURE_MATRIX
field_29472
f_pkgwetjd
textureMat
textureMat
f_173310_
public final Uniform
f
SCREEN_SIZE
field_29473
f_mzljhykz
screenSize
screenSize
f_173311_
public final Uniform
g
COLOR_MODULATOR
field_29474
f_ucvdaalw
colorModulator
colorModulator
f_173312_
public final Uniform
h
LIGHT0_DIRECTION
field_29475
f_ozyjzqpi
light0Direction
light0Direction
f_173313_
public final Uniform
i
LIGHT1_DIRECTION
field_29476
f_emrnahku
light1Direction
light1Direction
f_173314_
public final Uniform
j
GLINT_ALPHA
field_42231
f_xstezzvg
glintAlpha
glintAlpha
f_267422_
public final Uniform
k
FOG_START
field_29477
f_rhipfgaz
fogStart
fogStart
f_173315_
public final Uniform
l
FOG_END
field_29478
f_olahhvdi
fogEnd
fogEnd
f_173316_
public final Uniform
m
FOG_COLOR
field_29479
f_gvmfiqhk
fogColor
fogColor
f_173317_
public final Uniform
n
FOG_SHAPE
field_36373
f_twfrdwra
fogShape
fogShape
f_202432_
public final Uniform
o
LINE_WIDTH
field_29480
f_kzankjrh
lineWidth
lineWidth
f_173318_
public final Uniform
p
GAME_TIME
field_29481
f_dkvhledx
gameTime
gameTime
f_173319_
public final Uniform
q
CHUNK_OFFSET
field_29482
f_ulmvepky
chunkOffset
chunkOffset
f_173320_

Constructor summary

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

Method summary

Modifier and TypeMethod
private static Program
a(aql arg0, epp$a arg1, String arg2)
getOrCreate(ResourceProvider arg0, Program$Type arg1, String arg2)
method_34579(class_5912 arg0, class_281$class_282 arg1, String arg2)
m_jjjxwzhw(C_xadhkzfq arg0, C_bejltllu$C_geegkuxw arg1, String arg2)
loadShader(ResourceFactory factory, ShaderStage$Type type, String name)
loadProgram(ResourceFactory factory, ShaderStage$Type type, String name)
m_173340_(C_140974_ p_173341_, C_3169_$C_3170_ p_173342_, String p_173343_)
public static BlendMode
a(com.google.gson.JsonObject arg0)
parseBlendNode(com.google.gson.JsonObject arg0)
method_34581(com.google.gson.JsonObject arg0)
m_jwxcbgve(com.google.gson.JsonObject arg0)
readBlendState(com.google.gson.JsonObject json)
readBlendState(com.google.gson.JsonObject json)
m_173346_(com.google.gson.JsonObject p_173347_)
public void
close()
close()
close()
public void
f()
clear()
method_34585()
m_kstjfvmx()
unbind()
unbind()
m_173362_()
public void
g()
apply()
method_34586()
m_pkpaxzbq()
bind()
bind()
m_173363_()
public void
b()
markDirty()
method_1279()
m_lzgywito()
markUniformsDirty()
markUniformsDirty()
m_108957_()
public Uniform
a(String arg0)
getUniform(String arg0)
method_34582(String arg0)
m_igfoursc(String arg0)
getUniform(String name)
getUniform(String name)
m_173348_(String arg0)
public AbstractUniform
b(String arg0)
safeGetUniform(String arg0)
method_35785(String arg0)
m_jugxvcsv(String arg0)
getUniformOrDefault(String name)
getUniformOrDefault(String name)
m_173356_(String arg0)
private void
j()
updateLocations()
method_34588()
m_ilnxdfkv()
loadReferences()
loadReferences()
m_173366_()
private void
a(com.google.gson.JsonElement arg0)
parseSamplerNode(com.google.gson.JsonElement arg0)
method_34580(com.google.gson.JsonElement arg0)
m_umogoebt(com.google.gson.JsonElement arg0)
readSampler(com.google.gson.JsonElement json)
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)
m_covxfoff(String arg0, Object arg1)
addSampler(String name, Object sampler)
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)
m_bikkkjai(com.google.gson.JsonElement arg0)
addUniform(com.google.gson.JsonElement json)
addUniform(com.google.gson.JsonElement json)
m_173354_(com.google.gson.JsonElement arg0)
public Program
c()
getVertexProgram()
method_1274()
m_xoqgoxij()
getVertexShader()
getVertexShader()
m_108962_()
public Program
d()
getFragmentProgram()
method_1278()
m_qnzasjah()
getFragmentShader()
getFragmentShader()
m_108964_()
public void
e()
attachToProgram()
method_34418()
m_nfebcxtw()
attachReferencedShaders()
attachReferencedShaders()
m_142662_()
public VertexFormat
h()
getVertexFormat()
method_35786()
m_tpzywfgx()
getFormat()
getFormat()
m_173364_()
public String
i()
getName()
method_35787()
m_ttfsiqtw()
getName()
getName()
m_173365_()
public int
a()
getId()
method_1270()
m_byoiplce()
getGlRef()
getId()
m_108943_()