Woohoo! Vertex colors work now in my engine (gltf). Turns out it wasn't a problem with my code but a problem with Blender's. Downgraded to 2.8 from 3.3 and everything works. I love programming 🙂