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 Details

    • 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:
    • 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 Details

    • VertexLighterFlat

      public VertexLighterFlat(BlockColors colors)
  • Method Details

    • setParent

      public void setParent(IVertexConsumer parent)
      Overrides:
      setParent in class QuadGatheringTransformer
    • setTransform

      public void setTransform(MatrixStack.Entry pose)
    • updateIndices

      private void updateIndices()
    • setVertexFormat

      public void setVertexFormat(VertexFormat format)
      Overrides:
      setVertexFormat in class QuadGatheringTransformer
    • withNormal

      static VertexFormat withNormal(VertexFormat format)
    • withNormalUncached

      private static VertexFormat withNormalUncached(VertexFormat format)
    • processQuad

      protected void processQuad()
      Specified by:
      processQuad in class QuadGatheringTransformer
    • 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()