Duplicate vertices in the vertex shader? #558
Replies: 1 comment 3 replies
-
Yeah, you can't do this in a vertex shader, you need geometry shaders for that, which Malt doesn't support. So for this I would just duplicate the geometry in GN (or even render some objects twice using Render Nodes if you feel more adventurous), and then do the displacement or whatever in the shader. |
Beta Was this translation helpful? Give feedback.
-
I am attempting to make Inverted Hull lines in the shader as an experiment. I see that there is a vertex shader input and output, and that I can move this around, perform displace, etc. But is it possible to duplicate some vertices? There's no node, but I assume with Inline Code or writing my own node this would be possible? In geonodes, the process would be to duplicate the geometry, displace it, flip the normals, and then join it back with the original.
I'm not clear on if we even can duplicate vertices in a vertex shader. I see a bunch of other contexts saying that you can't, and that you use other sorts of geometry shaders for this. Other places seem to imply that you can, but they may be using the term more generally.
Beta Was this translation helpful? Give feedback.
All reactions