I am currently generating a voxel-based mesh via code, ala Minecraft. Each 3D square is a voxel.
The only problem is that I have these lines in-between all of the faces of my cubes and I’m not sure where they’re coming from. I’ve gone through the code and it looks like it’s not a rounding error, but, that’s about all I can tell.
The only I can think of is that the order of the triangle creation is important, but, that sounds implausible. Or perhaps it’s related to the shader or material?
Does anyone have any suggestions on where to start looking?
Here’s a video:
https://vimeo.com/42994526