net.minecraft.client.renderer

public class ShaderInstance

implements Shader, AutoCloseable

ent
net.minecraft.client.renderer.ShaderInstance
net.minecraft.class_5944
net.minecraft.unmapped.C_alllhitb
net.minecraft.client.render.Shader
net.minecraft.src.C_141721_

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
private static Program
a(adv arg0, dqa$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)
loadProgram(ResourceFactory factory, Program$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)
m_173346_(com.google.gson.JsonObject p_173347_)
public void
close()
close()
close()
public void
f()
clear()
method_34585()
m_kstjfvmx()
unbind()
m_173362_()
public void
g()
apply()
method_34586()
m_pkpaxzbq()
bind()
m_173363_()
public void
b()
markDirty()
method_1279()
m_lzgywito()
markUniformsDirty()
m_142660_()
public Uniform
a(String arg0)
getUniform(String arg0)
method_34582(String arg0)
m_igfoursc(String arg0)
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)
m_173356_(String arg0)
private void
j()
updateLocations()
method_34588()
m_ilnxdfkv()
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)
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)
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)
m_173354_(com.google.gson.JsonElement arg0)
public Program
c()
getVertexProgram()
method_1274()
m_xoqgoxij()
getVertexShader()
m_142733_()
public Program
d()
getFragmentProgram()
method_1278()
m_qnzasjah()
getFragmentShader()
m_142736_()
public void
e()
attachToProgram()
method_34418()
m_nfebcxtw()
attachReferencedShaders()
m_142662_()
public VertexFormat
h()
getVertexFormat()
method_35786()
m_tpzywfgx()
getFormat()
m_173364_()
public String
i()
getName()
method_35787()
m_ttfsiqtw()
getName()
m_173365_()
public int
a()
getId()
method_1270()
m_byoiplce()
getProgramRef()
m_142658_()