134135136137138139140141
public LC[] lightCoords = new LC[24]; public FullBlock() { for (int i = 0; i < 24; i++) { lightCoords[i] = new LC().compute(verts[i].vec, i / 4); } }
406407408409410411412413414
public CCModel computeLightCoords() { LC[] lcs = getOrAllocate(CCRenderState.lightCoordAttrib); Vector3[] normals = normals(); for (int i = 0; i < verts.length; i++) { lcs[i] = new LC().compute(verts[i].vec, normals[i]); } return this; }