From a8d6d469d57349da515759270eb31a242c795951 Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 3 Jun 2025 18:24:43 -0700 Subject: Begin work on SSAO - very buggy! --- globals.cginc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'globals.cginc') diff --git a/globals.cginc b/globals.cginc index aeedad5..1d9f291 100644 --- a/globals.cginc +++ b/globals.cginc @@ -3,6 +3,11 @@ #include "features.cginc" +#if defined(_SSAO) +UNITY_DECLARE_DEPTH_TEXTURE(_CameraDepthTexture); +float4 _CameraDepthTexture_TexelSize; +#endif + SamplerState point_repeat_s; SamplerState linear_repeat_s; SamplerState linear_clamp_s; @@ -521,4 +526,13 @@ float _Custom30_BasicPlatform_Core_D; float3 _Custom30_BasicPlatform_Chamfer_Size; #endif // _CUSTOM30_BASICPLATFORM_CHAMFER +#if defined(_SSAO) +float _SSAO_Radius; +float _SSAO_Samples; +float _SSAO_Strength; +texture2D _SSAO_Noise; +float4 _SSAO_Noise_TexelSize; +float _SSAO_Bias; +#endif // _SSAO + #endif // __GLOBALS_INC -- cgit v1.2.3