public void ForceVoxelFaceMaterial(string materialName)
{
Vector3I coords;
for (var y = 0; y < Size.Y; y++)
{
for (var z = 0; z < Size.Z; z++)
{
coords = new Vector3I(0, y, z);
SetVoxelMaterialAndIndestructibleContent(materialName, 0xff, ref coords);
coords = new Vector3I(Size.X - 1, y, z);
SetVoxelMaterialAndIndestructibleContent(materialName, 0xff, ref coords);
}
}
for (var x = 0; x < Size.X; x++)
{
for (var z = 0; z < Size.Z; z++)
{
coords = new Vector3I(x, 0, z);
SetVoxelMaterialAndIndestructibleContent(materialName, 0xff, ref coords);
coords = new Vector3I(x, Size.Y - 1, z);
SetVoxelMaterialAndIndestructibleContent(materialName, 0xff, ref coords);
}
}
for (var x = 0; x < Size.X; x++)
{
for (var y = 0; y < Size.Y; y++)
{
coords = new Vector3I(x, y, 0);
SetVoxelMaterialAndIndestructibleContent(materialName, 0xff, ref coords);
coords = new Vector3I(x, y, Size.Z - 1);
SetVoxelMaterialAndIndestructibleContent(materialName, 0xff, ref coords);
}
}
}