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
FieldsModifier and TypeFieldDescriptionprotected VertexFormatprotected final BlockInfoprotected intprivate booleanprivate static final intprivate static final intprivate static final floatprotected intprotected static final VertexFormatElementprotected intprotected MatrixStack.Entryprotected intprivate intFields inherited from class net.minecraftforge.client.model.pipeline.QuadGatheringTransformer
dataLength, format, parent, quadData, vertices -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidvoidsetApplyDiffuseLighting(boolean diffuse) voidsetBlockPos(BlockPos blockPos) voidsetParent(IVertexConsumer parent) voidvoidsetQuadOrientation(Direction orientation) voidsetQuadTint(int tint) voidsetState(BlockState state) voidsetTexture(TextureAtlasSprite texture) voidvoidsetVertexFormat(VertexFormat format) voidsetWorld(IBlockDisplayReader world) voidprotected voidupdateColor(float[] normal, float[] color, float x, float y, float z, float tint, int multiplier) private voidprotected voidupdateLightmap(float[] normal, float[] lightmap, float x, float y, float z) (package private) static VertexFormatwithNormal(VertexFormat format) private static VertexFormatwithNormalUncached(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:
setParentin classQuadGatheringTransformer
-
setTransform
-
updateIndices
private void updateIndices() -
setVertexFormat
- Overrides:
setVertexFormatin classQuadGatheringTransformer
-
withNormal
-
withNormalUncached
-
processQuad
protected void processQuad()- Specified by:
processQuadin 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()
-