I want to draw more triangles of the component
Cocos
MAY 18, 2023
Firstly, Sprite is a quad, the mesh is static for easier usage. You can have a custom render component and make its mesh with multiple quad, but it really isn’t necessary. Just calculate color step in the fragment shader is enough. You can achieve gradient color within one quad.
Let's personalize your content