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)