I really like how the edge renderer looks on the ‘vertices instead of indices’ setting. I’m using it on a voxel world. The problem is, as I’ve added more and more voxels to the game, the edge renderer takes longer and longer to start up. After the game is started, it runs at max fps.
I don’t know what the slow part actually is… scanning the mesh for vertices? Adding lines to the scene?
Does anyone know of a way that I could speed up the process? Maybe I could compute something once and save the edges to a file somehow (not sure how). Or maybe a similar effect as a shader? I don’t know how to write a shader, but if someone tells me that this has a solid chance of producing an edge renderer that can run on slow machines I would learn shaders to accomplish it.
EdgeRenderer making things look awesome:
BTW the whole world is 9 meshes, and I may merge it into 1 later. So all of the stuff any of the screenshots is essentially one mesh. The texture is only a few bytes storing colors, and they get stretched across the appropriate faces.