From 09fd883390f64518fff2d55c4036d674371d88cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elvar=20=C3=96rn=20Unn=C3=BE=C3=B3rsson?= Date: Thu, 8 Feb 2024 13:08:36 +0000 Subject: [PATCH] [2022.3][URP] Improvement on downsampled SSAO (UUM-49557) Backport of #42246. Fixes UUM-49557. --- .../ShaderLibrary/DeclareDepthTexture.hlsl | 1 + .../ShaderLibrary/SSAO.hlsl | 7 +- .../URPAssets/200_SSAOURPAsset.asset | 1 + .../SSAO_DepthRenderer_Downsample.asset | 116 ++++++ .../SSAO_DepthRenderer_Downsample.asset.meta | 8 + .../Shaders/OutputSSAOTexture.shader | 2 +- .../Scenes/202_SSAO_Depth_DownSample.unity | 386 ++++++++++++++++++ .../202_SSAO_Depth_DownSample.unity.meta | 7 + .../Test/TestFilters/TestCaseFilters.asset | 9 + .../ProjectSettings/EditorBuildSettings.asset | 3 + 10 files changed, 538 insertions(+), 2 deletions(-) create mode 100644 Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Renderers/SSAO_DepthRenderer_Downsample.asset create mode 100644 Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Renderers/SSAO_DepthRenderer_Downsample.asset.meta create mode 100644 Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/202_SSAO_Depth_DownSample.unity create mode 100644 Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/202_SSAO_Depth_DownSample.unity.meta diff --git a/Packages/com.unity.render-pipelines.universal/ShaderLibrary/DeclareDepthTexture.hlsl b/Packages/com.unity.render-pipelines.universal/ShaderLibrary/DeclareDepthTexture.hlsl index c64597d7bb2..1cb01cc295d 100644 --- a/Packages/com.unity.render-pipelines.universal/ShaderLibrary/DeclareDepthTexture.hlsl +++ b/Packages/com.unity.render-pipelines.universal/ShaderLibrary/DeclareDepthTexture.hlsl @@ -4,6 +4,7 @@ TEXTURE2D_X_FLOAT(_CameraDepthTexture); SAMPLER(sampler_CameraDepthTexture); +float4 _CameraDepthTexture_TexelSize; float SampleSceneDepth(float2 uv) { diff --git a/Packages/com.unity.render-pipelines.universal/ShaderLibrary/SSAO.hlsl b/Packages/com.unity.render-pipelines.universal/ShaderLibrary/SSAO.hlsl index 93f5e89df70..0f4c8c80c02 100644 --- a/Packages/com.unity.render-pipelines.universal/ShaderLibrary/SSAO.hlsl +++ b/Packages/com.unity.render-pipelines.universal/ShaderLibrary/SSAO.hlsl @@ -215,9 +215,14 @@ half3 PickSamplePoint(float2 uv, int sampleIndex, half sampleIndexHalf, half rcp return v; } +// For Downsampled SSAO we need to adjust the UV coordinates +// so it hits the center of the pixel inside the depth texture. +// The texelSize multiplier is 1.0 when DOWNSAMPLE is enabled, otherwise 0.0 +#define ADJUSTED_DEPTH_UV(uv) uv.xy + ((_CameraDepthTexture_TexelSize.xy * 0.5) * (1.0 - (DOWNSAMPLE - 0.5) * 2.0)) + float SampleDepth(float2 uv) { - return SampleSceneDepth(uv.xy); + return SampleSceneDepth(ADJUSTED_DEPTH_UV(uv.xy)); } float GetLinearEyeDepth(float rawDepth) diff --git a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/CommonAssets/URPAssets/200_SSAOURPAsset.asset b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/CommonAssets/URPAssets/200_SSAOURPAsset.asset index 0a37267af91..db20769cb19 100644 --- a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/CommonAssets/URPAssets/200_SSAOURPAsset.asset +++ b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/CommonAssets/URPAssets/200_SSAOURPAsset.asset @@ -21,6 +21,7 @@ MonoBehaviour: - {fileID: 11400000, guid: 590f3c2dabc9147698f7027e50b2ecd6, type: 2} - {fileID: 11400000, guid: 33768f1904a5640658411475990e6a10, type: 2} - {fileID: 11400000, guid: da4df2f1951704ee7aa560ed78d91c24, type: 2} + - {fileID: 11400000, guid: 3818ca301fb764854bfe2ed63d85c4a8, type: 2} m_DefaultRendererIndex: 0 m_RequireDepthTexture: 1 m_RequireOpaqueTexture: 1 diff --git a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Renderers/SSAO_DepthRenderer_Downsample.asset b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Renderers/SSAO_DepthRenderer_Downsample.asset new file mode 100644 index 00000000000..0ecb454622c --- /dev/null +++ b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Renderers/SSAO_DepthRenderer_Downsample.asset @@ -0,0 +1,116 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-4118354057714973650 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c2bbd4cbcd6c345ef9df7a17d0e7db54, type: 3} + m_Name: OutputSSAO + m_EditorClassIdentifier: + m_Active: 1 + shader: {fileID: 4800000, guid: e61ad6112715047c9ac93c05f2990886, type: 3} + inputRequirement: 0 + renderPassEvent: 1000 + renderPassEventAdjustment: 0 +--- !u!114 &11400000 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: de640fe3d0db1804a85f9fc8f5cadab6, type: 3} + m_Name: SSAO_DepthRenderer_Downsample + m_EditorClassIdentifier: + debugShaders: + debugReplacementPS: {fileID: 4800000, guid: cf852408f2e174538bcd9b7fda1c5ae7, + type: 3} + hdrDebugViewPS: {fileID: 4800000, guid: 573620ae32aec764abd4d728906d2587, type: 3} + m_RendererFeatures: + - {fileID: 339116797255187971} + - {fileID: -4118354057714973650} + m_RendererFeatureMap: 037ec32deec8b4042e449cf2cdaad8c6 + m_UseNativeRenderPass: 0 + postProcessData: {fileID: 0} + xrSystemData: {fileID: 11400000, guid: 60e1133243b97e347b653163a8c01b64, type: 2} + shaders: + blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3} + copyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3} + screenSpaceShadowPS: {fileID: 0} + samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3} + stencilDeferredPS: {fileID: 4800000, guid: e9155b26e1bc55942a41e518703fe304, type: 3} + fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3} + fallbackLoadingPS: {fileID: 4800000, guid: 7f888aff2ac86494babad1c2c5daeee2, type: 3} + materialErrorPS: {fileID: 4800000, guid: 5fd9a8feb75a4b5894c241777f519d4e, type: 3} + coreBlitPS: {fileID: 4800000, guid: 93446b5c5339d4f00b85c159e1159b7c, type: 3} + coreBlitColorAndDepthPS: {fileID: 4800000, guid: d104b2fc1ca6445babb8e90b0758136b, + type: 3} + blitHDROverlay: {fileID: 4800000, guid: a89bee29cffa951418fc1e2da94d1959, type: 3} + cameraMotionVector: {fileID: 4800000, guid: c56b7e0d4c7cb484e959caeeedae9bbf, + type: 3} + objectMotionVector: {fileID: 4800000, guid: 7b3ede40266cd49a395def176e1bc486, + type: 3} + dataDrivenLensFlare: {fileID: 4800000, guid: 6cda457ac28612740adb23da5d39ea92, + type: 3} + m_AssetVersion: 2 + m_OpaqueLayerMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_TransparentLayerMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_DefaultStencilState: + overrideStencilState: 0 + stencilReference: 0 + stencilCompareFunction: 8 + passOperation: 2 + failOperation: 0 + zFailOperation: 0 + m_ShadowTransparentReceive: 0 + m_RenderingMode: 0 + m_DepthPrimingMode: 0 + m_CopyDepthMode: 1 + m_AccurateGbufferNormals: 0 + m_IntermediateTextureMode: 1 +--- !u!114 &339116797255187971 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f62c9c65cf3354c93be831c8bc075510, type: 3} + m_Name: SSAO + m_EditorClassIdentifier: + m_Active: 1 + m_Settings: + AOMethod: 1 + Downsample: 1 + AfterOpaque: 0 + Source: 0 + NormalSamples: 1 + Intensity: 14.41 + DirectLightingStrength: 1 + Radius: 0.2 + Samples: 0 + BlurQuality: 2 + Falloff: 100 + SampleCount: -1 + m_BlueNoise256Textures: + - {fileID: 2800000, guid: 36f118343fc974119bee3d09e2111500, type: 3} + - {fileID: 2800000, guid: 4b7b083e6b6734e8bb2838b0b50a0bc8, type: 3} + - {fileID: 2800000, guid: c06cc21c692f94f5fb5206247191eeee, type: 3} + - {fileID: 2800000, guid: cb76dd40fa7654f9587f6a344f125c9a, type: 3} + - {fileID: 2800000, guid: e32226222ff144b24bf3a5a451de54bc, type: 3} + - {fileID: 2800000, guid: 3302065f671a8450b82c9ddf07426f3a, type: 3} + - {fileID: 2800000, guid: 56a77a3e8d64f47b6afe9e3c95cb57d5, type: 3} + m_Shader: {fileID: 4800000, guid: 0849e84e3d62649e8882e9d6f056a017, type: 3} diff --git a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Renderers/SSAO_DepthRenderer_Downsample.asset.meta b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Renderers/SSAO_DepthRenderer_Downsample.asset.meta new file mode 100644 index 00000000000..85167e4a713 --- /dev/null +++ b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Renderers/SSAO_DepthRenderer_Downsample.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3818ca301fb764854bfe2ed63d85c4a8 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 11400000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Shaders/OutputSSAOTexture.shader b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Shaders/OutputSSAOTexture.shader index a256f7c2fff..55fb1b3c90d 100644 --- a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Shaders/OutputSSAOTexture.shader +++ b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Shaders/OutputSSAOTexture.shader @@ -1,4 +1,4 @@ -Shader "Hidden/Test/OutputDepthNormalsTexture" +Shader "Hidden/Test/OutputSSAOTexture" { SubShader { diff --git a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/202_SSAO_Depth_DownSample.unity b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/202_SSAO_Depth_DownSample.unity new file mode 100644 index 00000000000..6d2585196a8 --- /dev/null +++ b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/202_SSAO_Depth_DownSample.unity @@ -0,0 +1,386 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 10 + m_Fog: 0 + m_FogColor: {r: 0.764151, g: 0.764151, b: 0.764151, a: 1} + m_FogMode: 1 + m_FogDensity: 0.23 + m_LinearFogStart: 5.5 + m_LinearFogEnd: 11 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 0 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.854 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 0 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 0} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 12 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 0 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_ReflectionCompression: 2 + m_MixedBakeMode: 1 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 112000002, guid: 74e316885f585454d987a2267a43e348, + type: 2} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 3 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + buildHeightMesh: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &484903194 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 484903196} + - component: {fileID: 484903195} + m_Layer: 0 + m_Name: SelectQualitySetting + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &484903195 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 484903194} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4f1decc188d2f3146ab93291a5c743e9, type: 3} + m_Name: + m_EditorClassIdentifier: + qualityLevelIndex: 9 +--- !u!4 &484903196 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 484903194} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -1.5195698, y: 1.3765798, z: 0.5559635} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &2105869045282227417 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 602204260, guid: 144d97346f1c24d4ebabd0eec382b95d, type: 3} + propertyPath: m_RendererIndex + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 602204264, guid: 144d97346f1c24d4ebabd0eec382b95d, type: 3} + propertyPath: m_NormalizedViewPortRect.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 602204264, guid: 144d97346f1c24d4ebabd0eec382b95d, type: 3} + propertyPath: m_NormalizedViewPortRect.width + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 1102861100, guid: 144d97346f1c24d4ebabd0eec382b95d, type: 3} + propertyPath: m_RendererIndex + value: 4 + objectReference: {fileID: 0} + - target: {fileID: 1102861104, guid: 144d97346f1c24d4ebabd0eec382b95d, type: 3} + propertyPath: m_Enabled + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 250983500522915644, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869044156549848, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869044252751965, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869044541292822, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869044576247354, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869044648418474, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869044676573051, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869044706732872, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2105869044706732872, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2105869044706732872, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2105869044706732872, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2105869044706732872, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2105869044706732872, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2105869044706732872, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2105869044706732872, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2105869044706732872, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2105869044706732872, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2105869044706732873, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_Name + value: SSAO_Scene + objectReference: {fileID: 0} + - target: {fileID: 2105869044815225807, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869044851878325, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869044902513697, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869044940329948, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869045482052984, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869045550042639, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869045600072149, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869045611099711, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869045840700519, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869045852538487, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869045998397691, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869046017814663, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869046035820904, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 2105869046135578123, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2105869046157176453, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 4165542072040926531, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 4747535488705629445, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + - target: {fileID: 6332461642872126182, guid: 144d97346f1c24d4ebabd0eec382b95d, + type: 3} + propertyPath: 'm_Materials.Array.data[0]' + value: + objectReference: {fileID: 2100000, guid: d9d744ecb35aa40609673ac2c4902c8e, type: 2} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 144d97346f1c24d4ebabd0eec382b95d, type: 3} +--- !u!1660057539 &9223372036854775807 +SceneRoots: + m_ObjectHideFlags: 0 + m_Roots: + - {fileID: 484903196} + - {fileID: 2105869045282227417} diff --git a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/202_SSAO_Depth_DownSample.unity.meta b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/202_SSAO_Depth_DownSample.unity.meta new file mode 100644 index 00000000000..bd6baaedd1a --- /dev/null +++ b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Scenes/202_SSAO_Depth_DownSample.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 07434decccca04d53bb951a513c06901 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Test/TestFilters/TestCaseFilters.asset b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Test/TestFilters/TestCaseFilters.asset index 56313b19e75..6e5f207fea4 100644 --- a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Test/TestFilters/TestCaseFilters.asset +++ b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/Assets/Test/TestFilters/TestCaseFilters.asset @@ -374,3 +374,12 @@ MonoBehaviour: XrSdk: StereoModes: 0 Reason: No GLES on Deferred. + - FilteredScene: {fileID: 0} + FilteredScenes: + - {fileID: 102900000, guid: 07434decccca04d53bb951a513c06901, type: 3} + ColorSpace: -1 + BuildPlatform: 13 + GraphicsDevice: 11 + XrSdk: OculusLoader + StereoModes: 0 + Reason: UUM-60205 diff --git a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/ProjectSettings/EditorBuildSettings.asset b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/ProjectSettings/EditorBuildSettings.asset index 1b7e28c35bc..04f3660ea1c 100644 --- a/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/ProjectSettings/EditorBuildSettings.asset +++ b/Tests/SRPTests/Projects/UniversalGraphicsTest_Foundation/ProjectSettings/EditorBuildSettings.asset @@ -287,6 +287,9 @@ EditorBuildSettings: - enabled: 1 path: Assets/Scenes/202_SSAO_Depth.unity guid: 2696010bf40d644cc8abc0b1304c59db + - enabled: 1 + path: Assets/Scenes/202_SSAO_Depth_DownSample.unity + guid: 07434decccca04d53bb951a513c06901 - enabled: 1 path: Assets/Scenes/203_SSAO_DepthNormal.unity guid: c207f769f3e194ebc8cbd51e788ac65d