summaryrefslogtreecommitdiffstats
path: root/pbr.cginc
diff options
context:
space:
mode:
Diffstat (limited to 'pbr.cginc')
-rw-r--r--pbr.cginc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbr.cginc b/pbr.cginc
index 104a5d8..7117170 100644
--- a/pbr.cginc
+++ b/pbr.cginc
@@ -54,7 +54,7 @@ Pbr getPbr(v2f i) {
Pbr pbr = (Pbr) 0;
#if defined(_UV_SCROLL)
- i.uv0 += _Time[0] * _UV_Scroll_Speed;
+ i.uv0 += getTime() * _UV_Scroll_Speed;
#endif // _UV_SCROLL
pbr.albedo = _MainTex.Sample(aniso16_trilinear_repeat_s, i.uv0 * _MainTex_ST.xy + _MainTex_ST.zw);