1

I have a problem with geometry shader output vertices concatenation. I'm using openGL 3.3 and QT 5.6. I'm using lines_adjacency layout for GS and I make rectangles via each line. Like that: line strip to rectangles

But the problem is I can't concatenate output primitives. Like that:
line strip with adjacency to rectangels

But I have done it by using adjacency, so I can't do that for more than three lines(4 points).

George
  • 11
  • 1
  • "*But the problem is I can't concatenate output primitives." Why can't you? What have you tried? – Nicol Bolas Apr 01 '17 at 13:43
  • Actually I can, for example, in case of straight line(3 points), I can generate rectangle and another one for next line, but finally I'll have 8 vertices, instead of 6. – George Apr 01 '17 at 14:06
  • 3 vertices are not enough to make a line when using adjacency rendering. You have to provide at least 4 vertices. – Nicol Bolas Apr 01 '17 at 14:12

0 Answers0