Does the shader have a built-in function to get the texture size?
Cocos
MARCH 7, 2024
? ? Does the shader have a built-in function to get the texture size? I’m trying to draw a circle on a texture, the texture is in sprite. I tried it in different ways, sometimes it turns out to be a stretched circle, sometimes it’s not visible at all, sometimes only part of the circle is visible.
Let's personalize your content