diff options
| author | yum <yum.food.vr@gmail.com> | 2025-06-03 18:24:43 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-06-03 18:25:12 -0700 |
| commit | a8d6d469d57349da515759270eb31a242c795951 (patch) | |
| tree | 814c86255ff287749df60100453d2b4e10945cd6 /globals.cginc | |
| parent | 1dca0fed44b9c8eb8a6f3131f54c10f1323ed5a8 (diff) | |
Begin work on SSAO - very buggy!
Diffstat (limited to 'globals.cginc')
| -rw-r--r-- | globals.cginc | 14 |
1 files changed, 14 insertions, 0 deletions
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
|
