Class ModelBlockRenderer.AmbientOcclusionFace
java.lang.Object
net.minecraft.client.renderer.block.ModelBlockRenderer.AmbientOcclusionFace
- Enclosing class:
ModelBlockRenderer
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final float[]
(package private) final int[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate int
blend
(int pLightColor0, int pLightColor1, int pLightColor2, int pLightColor3) private int
blend
(int pBrightness0, int pBrightness1, int pBrightness2, int pBrightness3, float pWeight0, float pWeight1, float pWeight2, float pWeight3) void
calculate
(BlockAndTintGetter pLevel, BlockState pState, BlockPos pPos, Direction pDirection, float[] pShape, BitSet pShapeFlags, boolean pShade)
-
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 boundspShapeFlags
- the bit set to store the shape flags in. The first bit will betrue
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)
-