summaryrefslogtreecommitdiffstats
path: root/pbr.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-10-17 16:06:31 -0700
committeryum <yum.food.vr@gmail.com>2024-10-17 16:06:31 -0700
commit182e51776a51977d480ac19e668d3c209e601766 (patch)
tree590341fac985a0fafe392ecee482c643fdb6693d /pbr.cginc
parent2d35cf78c8d2298af515110000c95ff81310f633 (diff)
Add toggle for unity fog
Diffstat (limited to 'pbr.cginc')
-rw-r--r--pbr.cginc2
1 files changed, 2 insertions, 0 deletions
diff --git a/pbr.cginc b/pbr.cginc
index c53a156..d575093 100644
--- a/pbr.cginc
+++ b/pbr.cginc
@@ -462,7 +462,9 @@ float4 getLitColor(
#endif
#endif
+#if defined(_UNITY_FOG)
UNITY_APPLY_FOG(i.fogCoord, pbr.rgb);
+#endif
return float4(pbr.rgb, albedo.a);
}