I am currently working on a shader where the amount of vertices are not defined by the amount of triangles, my shader puts a cuber every X units.
This means that I cannot know in advance how many cubes it will create and I do not know many vertices it will take.
However you have to put a maxvertexcount[x]
. What do I put in the x
?
How do I work around this?
Note: I am a beginner at geometry shaders and know next to nothing about them.