Take a deep dive into the Custom Primitive Data example from Matt Oztalay’s GDC2022 Presentation “Bringing the World to your Shaders”
https://dev.epicgames.com/community/learning/tutorials/2YEx/unreal-engine-making-a-team-color-stripe-with-custom-primitive-data