public class VertexLighterFlat extends QuadGatheringTransformer
Modifier and Type | Field and Description |
---|---|
protected VertexFormat |
baseFormat |
protected BlockInfo |
blockInfo |
protected int |
colorIndex |
private boolean |
diffuse |
private static int |
LIGHTMAP_MAX |
private static int |
LIGHTMAP_PACKING_FACTOR |
private static float |
LIGHTMAP_RESCALE |
protected int |
lightmapIndex |
protected static VertexFormatElement |
NORMAL_4F |
protected int |
normalIndex |
protected MatrixStack.Entry |
pose |
protected int |
posIndex |
private int |
tint |
dataLength, format, parent, quadData, vertices
Constructor and Description |
---|
VertexLighterFlat(BlockColors colors) |
Modifier and Type | Method and Description |
---|---|
protected void |
processQuad() |
void |
resetBlockInfo() |
void |
setApplyDiffuseLighting(boolean diffuse) |
void |
setBlockPos(BlockPos blockPos) |
void |
setParent(IVertexConsumer parent) |
void |
setQuadCulled() |
void |
setQuadOrientation(Direction orientation) |
void |
setQuadTint(int tint) |
void |
setState(BlockState state) |
void |
setTexture(TextureAtlasSprite texture) |
void |
setTransform(MatrixStack.Entry pose) |
void |
setVertexFormat(VertexFormat format) |
void |
setWorld(ILightReader world) |
void |
updateBlockInfo() |
protected void |
updateColor(float[] normal,
float[] color,
float x,
float y,
float z,
float tint,
int multiplier) |
private void |
updateIndices() |
protected void |
updateLightmap(float[] normal,
float[] lightmap,
float x,
float y,
float z) |
(package private) static VertexFormat |
withNormal(VertexFormat format) |
private static VertexFormat |
withNormalUncached(VertexFormat format) |
getVertexFormat, put
protected static final VertexFormatElement NORMAL_4F
private static final int LIGHTMAP_PACKING_FACTOR
private static final int LIGHTMAP_MAX
private static final float LIGHTMAP_RESCALE
protected final BlockInfo blockInfo
private int tint
private boolean diffuse
protected int posIndex
protected int normalIndex
protected int colorIndex
protected int lightmapIndex
protected VertexFormat baseFormat
protected MatrixStack.Entry pose
public VertexLighterFlat(BlockColors colors)
public void setParent(IVertexConsumer parent)
setParent
in class QuadGatheringTransformer
public void setTransform(MatrixStack.Entry pose)
private void updateIndices()
public void setVertexFormat(VertexFormat format)
setVertexFormat
in class QuadGatheringTransformer
static VertexFormat withNormal(VertexFormat format)
private static VertexFormat withNormalUncached(VertexFormat format)
protected void processQuad()
processQuad
in class QuadGatheringTransformer
protected void updateLightmap(float[] normal, float[] lightmap, float x, float y, float z)
protected void updateColor(float[] normal, float[] color, float x, float y, float z, float tint, int multiplier)
public void setQuadTint(int tint)
public void setQuadOrientation(Direction orientation)
public void setQuadCulled()
public void setTexture(TextureAtlasSprite texture)
public void setApplyDiffuseLighting(boolean diffuse)
public void setWorld(ILightReader world)
public void setState(BlockState state)
public void setBlockPos(BlockPos blockPos)
public void resetBlockInfo()
public void updateBlockInfo()