Custom shader for texture uv offset

i’m using cocos creator 3.8.6.
Follow the guide from /creator/3.8/manual/en/shader/write-effect-2d-sprite-gradient.html
I have created custom shader to apply uv offset by just add uniform
uniform Pice{
vec2 uvOffset;
};
and modify uv in vertex shader:
uv0 = a_texCoord + uvOffset;
but i have problem that output on web is strange and different with editor
uv: [0.04, 0.0]
Web:

if uv [0.5, 0.0] then on web texture disappear and on editor it show correct ( half of the image)

Did you do it like this?

@Vasilevnv99 That’s helpful, thanks for sharing the screenshot! I’m also curious if you’ve tested this on both web and editor, did you get the same result in both? Seems like there’s a platform difference happening here.”