Class FlatQuadLighter
java.lang.Object
net.neoforged.neoforge.client.model.lighting.QuadLighter
net.neoforged.neoforge.client.model.lighting.FlatQuadLighter
Implementation of
QuadLighter that lights quads with flat lighting.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final byteprivate static final floatprivate final int[]private static final Direction[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected floatcalculateBrightness(float[] position) protected intcalculateLightmap(float[] position, byte[] normal) protected voidcomputeLightingAt(BlockAndTintGetter level, BlockPos pos, BlockState state) Methods inherited from class net.neoforged.neoforge.client.model.lighting.QuadLighter
calculateShade, computeLightingForQuad, getComputedBrightness, getComputedLightmap, 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:
computeLightingAtin classQuadLighter
-
calculateBrightness
protected float calculateBrightness(float[] position) - Specified by:
calculateBrightnessin classQuadLighter
-
calculateLightmap
protected int calculateLightmap(float[] position, byte[] normal) - Specified by:
calculateLightmapin classQuadLighter
-