Class VertexLighterFlat

    • Field Detail

      • LIGHTMAP_PACKING_FACTOR

        private static final int LIGHTMAP_PACKING_FACTOR
      • 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
    • Constructor Detail

      • VertexLighterFlat

        public VertexLighterFlat​(BlockColors colors)
    • Method Detail

      • updateIndices

        private void updateIndices()
      • 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()
      • setApplyDiffuseLighting

        public void setApplyDiffuseLighting​(boolean diffuse)
      • setState

        public void setState​(BlockState state)
      • setBlockPos

        public void setBlockPos​(BlockPos blockPos)
      • resetBlockInfo

        public void resetBlockInfo()
      • updateBlockInfo

        public void updateBlockInfo()