Class FlatQuadLighter
java.lang.Object
net.minecraftforge.client.model.lighting.QuadLighter
net.minecraftforge.client.model.lighting.FlatQuadLighter
Implementation of
QuadLighter
that lights quads
with flat lighting.-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final byte
private static final float
private final int[]
private static final Direction[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected float
calculateBrightness
(float[] position) protected int
calculateLightmap
(float[] position, byte[] normal) protected void
computeLightingAt
(BlockAndTintGetter level, BlockPos pos, BlockState state) Methods inherited from class net.minecraftforge.client.model.lighting.QuadLighter
calculateShade, getLightColor, process, reset, setup
-
Field Details
-
SIDES
-
MAX_POSITION
private static final float MAX_POSITION- See Also:
-
MAX_NORMAL
private static final byte MAX_NORMAL- See Also:
-
isFullCube
private boolean isFullCube -
packedLight
private final int[] packedLight
-
-
Constructor Details
-
FlatQuadLighter
-
-
Method Details
-
computeLightingAt
- Specified by:
computeLightingAt
in classQuadLighter
-
calculateBrightness
protected float calculateBrightness(float[] position) - Specified by:
calculateBrightness
in classQuadLighter
-
calculateLightmap
protected int calculateLightmap(float[] position, byte[] normal) - Specified by:
calculateLightmap
in classQuadLighter
-