Class VertexLighterFlat
- java.lang.Object
-
- net.minecraftforge.client.model.pipeline.QuadGatheringTransformer
-
- net.minecraftforge.client.model.pipeline.VertexLighterFlat
-
- All Implemented Interfaces:
IVertexConsumer
- Direct Known Subclasses:
VertexLighterSmoothAo
public class VertexLighterFlat extends QuadGatheringTransformer
-
-
Field Summary
Fields Modifier and Type Field 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
-
Fields inherited from class net.minecraftforge.client.model.pipeline.QuadGatheringTransformer
dataLength, format, parent, quadData, vertices
-
-
Constructor Summary
Constructors Constructor Description VertexLighterFlat(BlockColors colors)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(IBlockDisplayReader 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)
-
Methods inherited from class net.minecraftforge.client.model.pipeline.QuadGatheringTransformer
getVertexFormat, put
-
-
-
-
Field Detail
-
NORMAL_4F
protected static final VertexFormatElement NORMAL_4F
-
LIGHTMAP_PACKING_FACTOR
private static final int LIGHTMAP_PACKING_FACTOR
-
LIGHTMAP_MAX
private static final int LIGHTMAP_MAX
- See Also:
- Constant Field Values
-
LIGHTMAP_RESCALE
private static final float LIGHTMAP_RESCALE
-
blockInfo
protected final BlockInfo blockInfo
-
tint
private int tint
-
diffuse
private boolean diffuse
-
posIndex
protected int posIndex
-
normalIndex
protected int normalIndex
-
colorIndex
protected int colorIndex
-
lightmapIndex
protected int lightmapIndex
-
baseFormat
protected VertexFormat baseFormat
-
pose
protected MatrixStack.Entry pose
-
-
Constructor Detail
-
VertexLighterFlat
public VertexLighterFlat(BlockColors colors)
-
-
Method Detail
-
setParent
public void setParent(IVertexConsumer parent)
- Overrides:
setParent
in classQuadGatheringTransformer
-
setTransform
public void setTransform(MatrixStack.Entry pose)
-
updateIndices
private void updateIndices()
-
setVertexFormat
public void setVertexFormat(VertexFormat format)
- Overrides:
setVertexFormat
in classQuadGatheringTransformer
-
withNormal
static VertexFormat withNormal(VertexFormat format)
-
withNormalUncached
private static VertexFormat withNormalUncached(VertexFormat format)
-
processQuad
protected void processQuad()
- Specified by:
processQuad
in classQuadGatheringTransformer
-
updateLightmap
protected void updateLightmap(float[] normal, float[] lightmap, float x, float y, float z)
-
updateColor
protected void updateColor(float[] normal, float[] color, float x, float y, float z, float tint, int multiplier)
-
setQuadTint
public void setQuadTint(int tint)
-
setQuadOrientation
public void setQuadOrientation(Direction orientation)
-
setQuadCulled
public void setQuadCulled()
-
setTexture
public void setTexture(TextureAtlasSprite texture)
-
setApplyDiffuseLighting
public void setApplyDiffuseLighting(boolean diffuse)
-
setWorld
public void setWorld(IBlockDisplayReader world)
-
setState
public void setState(BlockState state)
-
setBlockPos
public void setBlockPos(BlockPos blockPos)
-
resetBlockInfo
public void resetBlockInfo()
-
updateBlockInfo
public void updateBlockInfo()
-
-