Using the mesh component for 2D

Have you seen this example?

In this example, the “position”, “normal” and “texcoord0” are names that need to be in the buffer. I tried removing normal, but then it stopped working.
I think this is because the shaders are using normal, perhaps you can remove that. Or simply keep a normal for now.

We have also introducing a new vertex attribute setup on materials, and are implementing support for it on our components one-by-one. We should add it to the mesh component too for sure.

2 Likes