I am making an infinite voxel terrain that generates around the player. The blue boxes are the chunks that are currently loaded and the white ones are unloaded.
When building the mesh for a chunk I check if the blocks in the edges of surrounding chunks are air blocks and add a face if they are. The issue comes when the is no chunk loaded adjacent to a chunks mesh and so I don't add a face these since the player isn't going to see it (as is the case for the 8 chunks on the outside).
And so when the player moves and new chunks are generated there will be a seam because the remember the previous chunks had no way to tell if there was a block there in the first place.
One way I tried to fix this is to rebuild the meshes of chunks adjacent to the newly generated chunks which works but I feel like there is a simpler solution to this problem.
Any pointers will be super helpful. Thanks.