How to generate a procedural /voxel world

you mean that even the cubes that are behind the player must be disappear ?