I would like to add a custom vertex attribute, to access its data in the vertex shader. We can easily do it with a pc.Material, but then we lose all the shading. I think there were some attempts earlier by scanning the attributes, but I don’t think that method works with the recent changes. If one wants to add custom vertex attributes to a standard material, what would be the approach today?
A thread on this, but not any official way to do this at the moment: Custom attributes on material's shader definitions. · Issue #3485 · playcanvas/engine · GitHub