TheFuseLab / VL.Fuse

A library for visually programming on the GPU, built to enable rapid workflows and modular approaches to accelerated graphics, logic and computation.
https://www.thefuselab.io
MIT License
255 stars 19 forks source link

Get vertex id when rendering meshes #79

Closed texone closed 1 year ago

texone commented 1 year ago

When possible provide id when using geometry nodes to be able to read from buffers

tebjan commented 1 year ago

you just have to inherit from VertexIDStream and call AssignVertexID(); in the vertex stage: https://github.com/vvvv/VL.Stride/blob/preview/2022.5/packages/VL.Stride.Runtime/src/Effects/Common/VertexIDStream.sdsl

texone commented 1 year ago

Added VerexID Generation to material extension and draw shader