You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/Atom/Feature/Common/Assets/Passes/SsaoParent.pass

144 lines
5.1 KiB
Plaintext

{
"Type": "JsonSerialization",
"Version": 1,
"ClassName": "PassAsset",
"ClassData": {
"PassTemplate": {
"Name": "SsaoParentTemplate",
"PassClass": "SsaoParentPass",
"Slots": [
{
"Name": "LinearDepth",
"SlotType": "Input",
"ScopeAttachmentUsage": "Shader"
},
{
"Name": "Modulate",
"SlotType": "Input",
"ScopeAttachmentUsage": "Shader"
},
{
"Name": "Output",
"SlotType": "Output",
"ScopeAttachmentUsage": "Shader"
}
],
"Connections": [
{
"LocalSlot": "Output",
"AttachmentRef": {
"Pass": "ModulateWithSsao",
"Attachment": "InputOutput"
}
}
],
"PassRequests": [
{
"Name": "DepthDownsample",
"TemplateName": "DepthDownsampleTemplate",
"Enabled": true,
"Connections": [
{
"LocalSlot": "FullResDepth",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "LinearDepth"
}
}
]
},
{
"Name": "SsaoCompute",
"TemplateName": "SsaoComputeTemplate",
"Connections": [
{
"LocalSlot": "LinearDepth",
"AttachmentRef": {
"Pass": "DepthDownsample",
"Attachment": "HalfResDepth"
}
}
]
},
{
"Name": "SsaoBlur",
"TemplateName": "FastDepthAwareBlurTemplate",
"Enabled": true,
"Connections": [
{
"LocalSlot": "LinearDepth",
"AttachmentRef": {
"Pass": "DepthDownsample",
"Attachment": "HalfResDepth"
}
},
{
"LocalSlot": "BlurSource",
"AttachmentRef": {
"Pass": "SsaoCompute",
"Attachment": "Output"
}
}
]
},
{
"Name": "Upsample",
"TemplateName": "DepthUpsampleTemplate",
"Enabled": true,
"Connections": [
{
"LocalSlot": "FullResDepth",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "LinearDepth"
}
},
{
"LocalSlot": "HalfResDepth",
"AttachmentRef": {
"Pass": "DepthDownsample",
"Attachment": "HalfResDepth"
}
},
{
"LocalSlot": "HalfResSource",
"AttachmentRef": {
"Pass": "SsaoBlur",
"Attachment": "Output"
}
}
]
},
{
"Name": "ModulateWithSsao",
"TemplateName": "ModulateTextureTemplate",
"Enabled": true,
"Connections": [
{
"LocalSlot": "Input",
"AttachmentRef": {
"Pass": "Upsample",
"Attachment": "Output"
}
},
{
"LocalSlot": "InputOutput",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "Modulate"
}
}
],
"PassData": {
"$type": "ComputePassData",
"ShaderAsset": {
"FilePath": "Shaders/PostProcessing/ModulateTexture.shader"
},
"Make Fullscreen Pass": true
}
}
]
}
}
}