Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

_Time in Shader is unstable, so the uv move is not smooth.

$
0
0
Hi,
I need a simple uv move anim for wall in my proj, I use just simple shader as blow:

v2f vert (appdata v)
{
v2f o;
o.vertex = UnityObjectToClipPos(v.vertex);
o.uv = TRANSFORM_TEX(v.uv, _MainTex);

float offset = _Time.x * _Speed;
o.uv.x = o.uv.x + offset;

return o;
}

It works fine on PC, but on mobile phone, the uv move is not smooth, very unstable. I think it's because the delta time is stable un PC, but not stable on phone, so the _Time change is...

_Time in Shader is unstable, so the uv move is not smooth.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>