Class ModelBlockRenderer.AmbientOcclusionFace

java.lang.Object
net.minecraft.client.renderer.block.ModelBlockRenderer.AmbientOcclusionFace
Enclosing class:
ModelBlockRenderer

static class ModelBlockRenderer.AmbientOcclusionFace extends Object
  • Field Details

    • brightness

      final float[] brightness
    • lightmap

      final int[] lightmap
  • Constructor Details

    • AmbientOcclusionFace

      public AmbientOcclusionFace()
  • Method Details

    • calculate

      public void calculate(BlockAndTintGetter pLevel, BlockState pState, BlockPos pPos, Direction pDirection, float[] pShape, BitSet pShapeFlags, boolean pShade)
      Parameters:
      pShape - the array, of length 12, containing the shape bounds
      pShapeFlags - the bit set to store the shape flags in. The first bit will be true if the face should be offset, and the second if the face is less than a block in width and height.
    • blend

      private int blend(int pLightColor0, int pLightColor1, int pLightColor2, int pLightColor3)
      Returns:
      the ambient occlusion light color
    • blend

      private int blend(int pBrightness0, int pBrightness1, int pBrightness2, int pBrightness3, float pWeight0, float pWeight1, float pWeight2, float pWeight3)