Visibles lines between semi transparent cubes

I’m still learning the basics of Blender, practicing with Geometry Nodes using a grid and a cube to recreate Minecraft’s skies.
In the night sky, the clouds are semi-transparent, but when I try to make the cube semi-transparent, they’re lines between cubes and i don’t know how to make them disappear.

I’m not really sure if it’s a lighting issue or a problem with the geometry nodes…
Since I’m a new user, I can only attach one file. If you’d like a screenshot of the nodes, just let me know…

Welcome!

It’s likely that you are just seeing the internal faces between the cubes. There are simply more layers of transparency, so this is an expected result.

I don’t know geometry nodes well enough to do this better, but the remesh modifier in “blocks” mode might do it.

Can i see the screenshot of node tree.

maybe add a mesh boolean node at the end of your tree to merge all the cubes into one object? since its just cubes set it to ‘manifold’

Not sure if you’ve found a solution yet but, if not, here’s my thoughts.

For this situation it will probably be easier to create a grid of 2D planes and then extrude those to the size of cubes after merging overlapping vertices.

The extrude scale should be the same as the size of the squares (so in my screenshot the grid squares are 0.2 × 0.2m so the extrude size is also 0.2m).

Also, a few minor pointers; your “greater than” math node should technically be a “greater than” compare node to return a boolean type. Booleans are 0-1 so your current method works but in some cases that can break, so it’s usually good to use the correct node.
The other minor pointer is that your mesh to points node is completely useless here. Blender defaults vertices to points so the extra node isn’t necessary. Again, works fine and there’s nothing wrong with using it, but it’s not technically needed.

You can also alleviate the issue in the shader. Use a setup like this :

This makes any ray beyond the first hit surface fully transparent, instead of being a mix between transparent and whatever. So you don’t see inside faces