类 LightMatrix
java.lang.Object
committee.nova.mods.avaritia.api.client.render.lighting.LightMatrix
- 所有已实现的接口:
IVertexOperation
Note that when using the class as a vertex transformer, the vertices are assumed to be within the BB (x, y, z) -> (x+1, y+1, z+1)
-
嵌套类概要
从接口继承的嵌套类/接口 committee.nova.mods.avaritia.api.client.render.pipeline.IVertexOperation
IVertexOperation.VertexOperationRegistry -
字段概要
字段修饰符和类型字段说明net.minecraft.world.level.BlockAndTintGetterfloat[][]int[][]intstatic final intnet.minecraft.core.BlockPosstatic final int[][]static final float[]static final int[][]The 9 positions in the sample array for each side, sides >= 6 are centered on sample 13 (the block itself) -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明float[]ao(int side) int[]brightness(int side) protected voidinterp(int s, int q, int a, int b, int c, int d) static floatinterpAO(float a, float b, float c, float d) static intinterpBrightness(int a, int b, int c, int d) booleanload(CCRenderState ccrs) Load any required references and add dependencies to the pipeline based on the current model (may be null) Return false if this operation is redundant in the pipeline with the given modelvoidlocate(net.minecraft.world.level.BlockAndTintGetter a, net.minecraft.core.BlockPos bPos) voidoperate(CCRenderState ccrs) Perform the operation on the current render stateintGet the unique id representing this type of operation.voidsample(int i) voidsideSample(int side)
-
字段详细资料
-
operationIndex
public static final int operationIndex -
ssamplem
public static final int[][] ssamplemThe 9 positions in the sample array for each side, sides >= 6 are centered on sample 13 (the block itself) -
qsamplem
public static final int[][] qsamplem -
sideao
public static final float[] sideao -
computed
public int computed -
ao
public float[][] ao -
brightness
public int[][] brightness -
access
public net.minecraft.world.level.BlockAndTintGetter access -
pos
public net.minecraft.core.BlockPos pos
-
-
构造器详细资料
-
LightMatrix
public LightMatrix()
-
-
方法详细资料
-
interpAO
public static float interpAO(float a, float b, float c, float d) -
interpBrightness
public static int interpBrightness(int a, int b, int c, int d) -
locate
public void locate(net.minecraft.world.level.BlockAndTintGetter a, net.minecraft.core.BlockPos bPos) -
sample
public void sample(int i) -
brightness
public int[] brightness(int side) -
ao
public float[] ao(int side) -
sideSample
public void sideSample(int side) -
interp
protected void interp(int s, int q, int a, int b, int c, int d) -
load
从接口复制的说明:IVertexOperationLoad any required references and add dependencies to the pipeline based on the current model (may be null) Return false if this operation is redundant in the pipeline with the given model- 指定者:
load在接口中IVertexOperation
-
operate
从接口复制的说明:IVertexOperationPerform the operation on the current render state- 指定者:
operate在接口中IVertexOperation
-
operationID
public int operationID()从接口复制的说明:IVertexOperationGet the unique id representing this type of operation. Duplicate operation IDs within the pipeline may have unexpected results. ID should be obtained from CCRenderState.registerOperation() and stored in a static variable- 指定者:
operationID在接口中IVertexOperation
-