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
-
Field Summary
Modifier and TypeFieldDescriptionprotected VertexFormat
protected final BlockInfo
protected int
private boolean
private static final int
private static final int
private static final float
protected int
protected static final VertexFormatElement
protected int
protected MatrixStack.Entry
protected int
private int
Fields inherited from class net.minecraftforge.client.model.pipeline.QuadGatheringTransformer
dataLength, format, parent, quadData, vertices
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
void
setApplyDiffuseLighting
(boolean diffuse) void
setBlockPos
(BlockPos blockPos) void
setParent
(IVertexConsumer parent) void
void
setQuadOrientation
(Direction orientation) void
setQuadTint
(int tint) void
setState
(BlockState state) void
setTexture
(TextureAtlasSprite texture) void
void
setVertexFormat
(VertexFormat format) void
setWorld
(IBlockDisplayReader world) void
protected void
updateColor
(float[] normal, float[] color, float x, float y, float z, float tint, int multiplier) private void
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 Details
-
NORMAL_4F
-
LIGHTMAP_PACKING_FACTOR
private static final int LIGHTMAP_PACKING_FACTOR -
LIGHTMAP_MAX
private static final int LIGHTMAP_MAX- See Also:
-
LIGHTMAP_RESCALE
private static final float LIGHTMAP_RESCALE -
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
-
pose
-
-
Constructor Details
-
VertexLighterFlat
-
-
Method Details
-
setParent
- Overrides:
setParent
in classQuadGatheringTransformer
-
setTransform
-
updateIndices
private void updateIndices() -
setVertexFormat
- Overrides:
setVertexFormat
in classQuadGatheringTransformer
-
withNormal
-
withNormalUncached
-
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
-
setQuadCulled
public void setQuadCulled() -
setTexture
-
setApplyDiffuseLighting
public void setApplyDiffuseLighting(boolean diffuse) -
setWorld
-
setState
-
setBlockPos
-
resetBlockInfo
public void resetBlockInfo() -
updateBlockInfo
public void updateBlockInfo()
-