net.minecraft.client.renderer

public class ShaderInstance

implements Shader, AutoCloseable

eyf
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
p
SHADER_PATH
field_32778
CORE_DIRECTORY
f_173321_
private static final String
q
SHADER_INCLUDE_PATH
field_32779
INCLUDE_DIRECTORY
f_173322_
static final org.slf4j.Logger
r
LOGGER
field_29483
LOGGER
f_173323_
private static final AbstractUniform
s
DUMMY_UNIFORM
field_29484
DEFAULT_UNIFORM
f_173324_
private static final boolean
t
ALWAYS_REAPPLY
field_32780
field_32780
f_173325_
private static ShaderInstance
u
lastAppliedShader
field_29485
activeShader
f_173326_
private static int
v
lastProgramId
field_29486
activeShaderId
f_173327_
private final Map<String, Object>
w
samplerMap
field_29487
samplers
f_173328_
private final List<String>
x
samplerNames
field_29488
samplerNames
f_173329_
private final List<Integer>
y
samplerLocations
field_29489
loadedSamplerIds
f_173330_
private final List<Uniform>
z
uniforms
field_29490
uniforms
f_173331_
private final List<Integer>
A
uniformLocations
field_29491
loadedUniformIds
f_173332_
private final Map<String, Uniform>
B
uniformMap
field_29492
loadedUniforms
f_173333_
private final int
C
programId
field_29493
programId
f_173299_
private final String
D
name
field_29494
name
f_173300_
private boolean
E
dirty
field_29495
dirty
f_173301_
private final BlendMode
F
blend
field_29464
blendState
f_173302_
private final List<Integer>
G
attributes
field_29465
loadedAttributeIds
f_173303_
private final List<String>
H
attributeNames
field_29466
attributeNames
f_173304_
private final Program
I
vertexProgram
field_29467
vertexShader
f_173305_
private final Program
J
fragmentProgram
field_29468
fragmentShader
f_173306_
private final VertexFormat
K
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
INVERSE_VIEW_ROTATION_MATRIX
field_36323
viewRotationMat
f_200956_
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
FOG_START
field_29477
fogStart
f_173315_
public final Uniform
j
FOG_END
field_29478
fogEnd
f_173316_
public final Uniform
k
FOG_COLOR
field_29479
fogColor
f_173317_
public final Uniform
l
FOG_SHAPE
field_36373
fogShape
f_202432_
public final Uniform
m
LINE_WIDTH
field_29480
lineWidth
f_173318_
public final Uniform
n
GAME_TIME
field_29481
gameTime
f_173319_
public final Uniform
o
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(ahx arg0, dzh$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_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_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()
getProgramRef()
m_108943_()