From 182e51776a51977d480ac19e668d3c209e601766 Mon Sep 17 00:00:00 2001 From: yum Date: Thu, 17 Oct 2024 16:06:31 -0700 Subject: Add toggle for unity fog --- pbr.cginc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pbr.cginc') 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); } -- cgit v1.2.3