类 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.-
字段概要
字段修饰符和类型字段说明private final float[][][]
private final int[][][]
private final float[][][][]
private final BlockPos.MutableBlockPos
private final int[][][]
private static final Direction[]
private final float[][][][]
private final boolean[][][]
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected float
calcLightmap
(float[][][][] light, float x, float y, float z) protected float
calculateBrightness
(float[] position) protected int
calculateLightmap
(float[] position, byte[] normal) private float
combine
(int c, int s1, int s2, int s3, boolean t0, boolean t1, boolean t2, boolean t3) protected void
computeLightingAt
(BlockAndTintGetter level, BlockPos origin, BlockState state) 从类继承的方法 net.minecraftforge.client.model.lighting.QuadLighter
calculateShade, process, reset, setup
-
字段详细资料
-
SIDES
-
pos
-
t
private final boolean[][][] t -
s
private final int[][][] s -
b
private final int[][][] b -
skyLight
private final float[][][][] skyLight -
blockLight
private final float[][][][] blockLight -
ao
private final float[][][] ao
-
-
构造器详细资料
-
SmoothQuadLighter
-
-
方法详细资料
-
computeLightingAt
- 指定者:
computeLightingAt
在类中QuadLighter
-
calculateBrightness
protected float calculateBrightness(float[] position) - 指定者:
calculateBrightness
在类中QuadLighter
-
calculateLightmap
protected int calculateLightmap(float[] position, byte[] normal) - 指定者:
calculateLightmap
在类中QuadLighter
-
combine
private float combine(int c, int s1, int s2, int s3, boolean t0, boolean t1, boolean t2, boolean t3) -
calcLightmap
protected float calcLightmap(float[][][][] light, float x, float y, float z)
-