Class SmoothQuadLighter
java.lang.Object
net.minecraftforge.client.model.lighting.QuadLighter
net.minecraftforge.client.model.lighting.SmoothQuadLighter
Implementation of 
QuadLighter that lights baked quads using ambient occlusion and
 light interpolation.- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final float[][][]private final int[][][]private final float[][][][]private final BlockPos.MutableBlockPosprivate final int[][][]private static final Direction[]private final float[][][][]private final boolean[][][]
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected floatcalcLightmap(float[][][][] light, float x, float y, float z) protected floatcalculateBrightness(float[] position) protected intcalculateLightmap(float[] position, byte[] normal) private floatcombine(int c, int s1, int s2, int s3, boolean t0, boolean t1, boolean t2, boolean t3) protected voidcomputeLightingAt(BlockAndTintGetter level, BlockPos origin, BlockState state) Methods inherited from class net.minecraftforge.client.model.lighting.QuadLightercalculateShade, getLightColor, process, reset, setup
- 
Field Details- 
SIDES
- 
pos
- 
tprivate final boolean[][][] t
- 
sprivate final int[][][] s
- 
bprivate final int[][][] b
- 
skyLightprivate final float[][][][] skyLight
- 
blockLightprivate final float[][][][] blockLight
- 
aoprivate final float[][][] ao
 
- 
- 
Constructor Details- 
SmoothQuadLighter
 
- 
- 
Method Details- 
computeLightingAt- Specified by:
- computeLightingAtin class- QuadLighter
 
- 
calculateBrightnessprotected float calculateBrightness(float[] position) - Specified by:
- calculateBrightnessin class- QuadLighter
 
- 
calculateLightmapprotected int calculateLightmap(float[] position, byte[] normal) - Specified by:
- calculateLightmapin class- QuadLighter
 
- 
combineprivate float combine(int c, int s1, int s2, int s3, boolean t0, boolean t1, boolean t2, boolean t3) 
- 
calcLightmapprotected float calcLightmap(float[][][][] light, float x, float y, float z) 
 
-