diff options
| author | yum <yum.food.vr@gmail.com> | 2024-10-15 16:02:34 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-10-15 16:02:34 -0700 |
| commit | 28d5901b122e443e01f37acb021cdc22a7392ae7 (patch) | |
| tree | 961c0dbf637c4f6bc677515f4fc56e3230043d1a /tooner_lighting.cginc | |
| parent | 1ff4045914b603c16f3e1b3339e1080b152825fb (diff) | |
Mitigate fog noise in desktop mode
Diffstat (limited to 'tooner_lighting.cginc')
| -rw-r--r-- | tooner_lighting.cginc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tooner_lighting.cginc b/tooner_lighting.cginc index 093a5af..f771f4a 100644 --- a/tooner_lighting.cginc +++ b/tooner_lighting.cginc @@ -174,7 +174,7 @@ v2f vert(appdata v) o.tangent = float4(UnityObjectToWorldDir(v.tangent.xyz), v.tangent.w); o.uv0 = v.uv0; o.uv1 = v.uv1; -#if defined(_WORLD_INTERPOLATORS) +#if defined(LIGHTMAP_ON) o.uv2 = v.uv2 * unity_LightmapST.xy + unity_LightmapST.zw; UNITY_TRANSFER_LIGHTING(o, v.uv2); #else @@ -547,7 +547,7 @@ float2 get_uv_by_channel(v2f i, uint which_channel) { case 1: return i.uv1; break; -#if !defined(_WORLD_INTERPOLATORS) +#if !defined(LIGHTMAP_ON) case 2: return i.uv2; break; |
