net.minecraft.client.renderer

public class ShaderInstance

implements Shader, AutoCloseable

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

Field summary

Modifier and TypeField
private static final String
n
SHADER_PATH
field_32778
CORE_DIRECTORY
f_173321_
private static final String
o
SHADER_INCLUDE_PATH
field_32779
INCLUDE_DIRECTORY
f_173322_
static final org.apache.logging.log4j.Logger
p
LOGGER
field_29483
LOGGER
f_173323_
private static final AbstractUniform
q
DUMMY_UNIFORM
field_29484
DEFAULT_UNIFORM
f_173324_
private static final boolean
r
ALWAYS_REAPPLY
field_32780
field_32780
f_173325_
private static ShaderInstance
s
lastAppliedShader
field_29485
activeShader
f_173326_
private static int
t
lastProgramId
field_29486
activeShaderId
f_173327_
private final Map<String, Object>
u
samplerMap
field_29487
samplers
f_173328_
private final List<String>
v
samplerNames
field_29488
samplerNames
f_173329_
private final List<Integer>
w
samplerLocations
field_29489
loadedSamplerIds
f_173330_
private final List<Uniform>
x
uniforms
field_29490
uniforms
f_173331_
private final List<Integer>
y
uniformLocations
field_29491
loadedUniformIds
f_173332_
private final Map<String, Uniform>
z
uniformMap
field_29492
loadedUniforms
f_173333_
private final int
A
programId
field_29493
programId
f_173299_
private final String
B
name
field_29494
name
f_173300_
private boolean
C
dirty
field_29495
dirty
f_173301_
private final BlendMode
D
blend
field_29464
blendState
f_173302_
private final List<Integer>
E
attributes
field_29465
loadedAttributeIds
f_173303_
private final List<String>
F
attributeNames
field_29466
attributeNames
f_173304_
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
a
MODEL_VIEW_MATRIX
field_29470
modelViewMat
f_173308_
public final Uniform
b
PROJECTION_MATRIX
field_29471
projectionMat
f_173309_
public final Uniform
c
TEXTURE_MATRIX
field_29472
textureMat
f_173310_
public final Uniform
d
SCREEN_SIZE
field_29473
screenSize
f_173311_
public final Uniform
e
COLOR_MODULATOR
field_29474
colorModulator
f_173312_
public final Uniform
f
LIGHT0_DIRECTION
field_29475
light0Direction
f_173313_
public final Uniform
g
LIGHT1_DIRECTION
field_29476
light1Direction
f_173314_
public final Uniform
h
FOG_START
field_29477
fogStart
f_173315_
public final Uniform
i
FOG_END
field_29478
fogEnd
f_173316_
public final Uniform
j
FOG_COLOR
field_29479
fogColor
f_173317_
public final Uniform
k
LINE_WIDTH
field_29480
lineWidth
f_173318_
public final Uniform
l
GAME_TIME
field_29481
gameTime
f_173319_
public final Uniform
m
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(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)
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)
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()
unbind()
m_173362_()
public void
g()
apply()
method_34586()
bind()
m_173363_()
public void
b()
markDirty()
method_1279()
markUniformsDirty()
m_142660_()
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_142733_()
public Program
d()
getFragmentProgram()
method_1278()
getFragmentShader()
m_142736_()
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()
getProgramRef()
m_142658_()