Hi,
I’m experiencing weird issues related to texture sampling of animated uvs.
Basically I have a simple frame based animation for the uvs which I have done many times before
on the vertex program. Recently, I have noticed a visual issues when using this kind of shader.
Here is the animation code:
v.texcoord /= NUM_FRAMES_PER_ROW;
float2 vAnimXY = floor(_Time.yy*float2(NUM_FRAMES, NUM_FRAMES_PER_ROW)) * RAME_UV_SIZE;
v.texcoord.xy += vAnimXY;
When I move the uvs animation code from the vertex to the fragment program, the results are correct ,please advise.
Vertex animation:
Fragment animation:
I’m using Unity 2019.2.16f1
Thank you very much.