public class LightMatrix extends java.lang.Object implements CCRenderState.IVertexOperation
| Modifier and Type | Field and Description |
|---|---|
IBlockAccess |
access |
float[][] |
ao |
int[][] |
brightness |
int |
computed |
static int |
operationIndex |
BlockCoord |
pos |
static int[][] |
qsamplem |
static float[] |
sideao |
static int[][] |
ssamplem
The 9 positions in the sample array for each side, sides >= 6 are centered on sample 13 (the block itself)
|
| Constructor and Description |
|---|
LightMatrix() |
| Modifier and Type | Method and Description |
|---|---|
float[] |
ao(int side) |
int[] |
brightness(int side) |
static float |
interpAO(float a,
float b,
float c,
float d) |
static int |
interpBrightness(int a,
int b,
int c,
int d) |
boolean |
load()
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 model
|
void |
locate(IBlockAccess a,
int x,
int y,
int z) |
void |
operate()
Perform the operation on the current render state
|
int |
operationID()
Get the unique id representing this type of operation.
|
void |
sample(int i) |
void |
sideSample(int side) |
public static final int operationIndex
public int computed
public float[][] ao
public int[][] brightness
public IBlockAccess access
public BlockCoord pos
public static final int[][] ssamplem
public static final int[][] qsamplem
public static final float[] sideao
public void locate(IBlockAccess a,
int x,
int y,
int z)
public void sample(int i)
public int[] brightness(int side)
public float[] ao(int side)
public void sideSample(int side)
public static float interpAO(float a,
float b,
float c,
float d)
public static int interpBrightness(int a,
int b,
int c,
int d)
public boolean load()
CCRenderState.IVertexOperationload in interface CCRenderState.IVertexOperationpublic void operate()
CCRenderState.IVertexOperationoperate in interface CCRenderState.IVertexOperationpublic int operationID()
CCRenderState.IVertexOperationoperationID in interface CCRenderState.IVertexOperation