summaryrefslogtreecommitdiffstats
path: root/pbr.cginc
diff options
context:
space:
mode:
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);
}