diff options
| author | yum <yum.food.vr@gmail.com> | 2025-10-19 19:06:55 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-10-19 19:06:55 -0700 |
| commit | ca91b9d552c165d64ddf63d0580f4bd031537b80 (patch) | |
| tree | 15e35e8126699c9a9e24158edf0b8f2a0ead5240 | |
| parent | 22aab789e97a72ab88fc59bd979b67ba1ca5e5be (diff) | |
add offset to maintex sample
| -rw-r--r-- | pbr.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -57,7 +57,7 @@ Pbr getPbr(v2f i) { i.uv0 += _Time[0] * _UV_Scroll_Speed; #endif // _UV_SCROLL - pbr.albedo = _MainTex.Sample(aniso16_trilinear_repeat_s, i.uv0 * _MainTex_ST.xy); + pbr.albedo = _MainTex.Sample(aniso16_trilinear_repeat_s, i.uv0 * _MainTex_ST.xy + _MainTex_ST.zw); pbr.albedo *= _Color; apply_marble(i.worldPos, pbr.albedo.xyz); |
