-
Not quite sure how to phrase this question succinctly, so apologies if the title here doesn't quite make sense. Basically, let's say I have two vertex buffers, the first with The problem I've run into, however, is that afaict only the first 6 For context, my draw call is essentially this: If any of this is unclear, let me know and hopefully I can explain it better, or if not I can try to provide a minimal code example to better showcase what I'm running into here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Graphics APIs do not offer that. If you want the advancement to be done for each vertex and also for instances, then you'd need to make this a non-instanced draw call. As for the buffer you are currently using as instanced, there are at least 2 choices:
|
Beta Was this translation helpful? Give feedback.
Graphics APIs do not offer that. If you want the advancement to be done for each vertex and also for instances, then you'd need to make this a non-instanced draw call. As for the buffer you are currently using as instanced, there are at least 2 choices:
gl_VertexIndex / 6
index. This would mean the buffer is exactly what you have today, and it's advanced once per 6 vertices.