virtual public BlockpartVisualizeInfo GetVisualInfo(Chunk chunk, ChunkPos cpos) { if (materialID == PoolMaster.NO_MATERIAL_ID | meshType == MeshType.NoMesh) { return(null); } else { if (faceIndex == Block.UP_FACE_INDEX && cpos.y + 1 >= GameMaster.layerCutHeight && chunk.IsUnderOtherBlock(this)) { return(new BlockpartVisualizeInfo(cpos, new MeshVisualizeInfo(faceIndex, MaterialType.Basic, GetLightValue(chunk, cpos, faceIndex)), meshType, PoolMaster.CUTTED_LAYER_TEXTURE, meshRotation )); } else { return(new BlockpartVisualizeInfo(cpos, new MeshVisualizeInfo(faceIndex, PoolMaster.GetMaterialType(materialID), GetLightValue(chunk, cpos, faceIndex)), meshType, materialID, meshRotation )); } } }
virtual public BlockpartVisualizeInfo GetVisualInfo(Chunk chunk, ChunkPos cpos) { if (materialID == PoolMaster.NO_MATERIAL_ID | meshType == MeshType.NoMesh) { return(null); } else { return(new BlockpartVisualizeInfo(cpos, new MeshVisualizeInfo(faceIndex, PoolMaster.GetMaterialType(materialID), GetLightValue(chunk, cpos, faceIndex)), meshType, materialID, meshRotation )); } }