-
Notifications
You must be signed in to change notification settings - Fork 804
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[2022.3][URP] Improvement on downsampled SSAO (UUM-49557)
Backport of #42246. Fixes UUM-49557.
- Loading branch information
Showing
10 changed files
with
538 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
116 changes: 116 additions & 0 deletions
116
...icsTest_Foundation/Assets/Scenes/200_Assets/Renderers/SSAO_DepthRenderer_Downsample.asset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} |
8 changes: 8 additions & 0 deletions
8
...st_Foundation/Assets/Scenes/200_Assets/Renderers/SSAO_DepthRenderer_Downsample.asset.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...niversalGraphicsTest_Foundation/Assets/Scenes/200_Assets/Shaders/OutputSSAOTexture.shader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Shader "Hidden/Test/OutputDepthNormalsTexture" | ||
Shader "Hidden/Test/OutputSSAOTexture" | ||
{ | ||
SubShader | ||
{ | ||
|
Oops, something went wrong.