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/PostProcessParent.pass

210 lines
7.7 KiB
Plaintext

{
"Type": "JsonSerialization",
"Version": 1,
"ClassName": "PassAsset",
"ClassData": {
"PassTemplate": {
"Name": "PostProcessParentTemplate",
"PassClass": "ParentPass",
"Slots": [
// Inputs...
{
"Name": "LightingInput",
"SlotType": "Input"
},
{
"Name": "Depth",
"SlotType": "Input"
},
{
"Name": "MotionVectors",
"SlotType": "Input"
},
// SwapChain here is only used to reference the frame height and format
{
"Name": "SwapChainOutput",
"SlotType": "InputOutput"
},
// Outputs...
{
"Name": "Output",
"SlotType": "Output"
},
// Debug Outputs...
{
"Name": "RawLightingOutput",
"SlotType": "Output"
},
{
"Name": "LuminanceMipChainOutput",
"SlotType": "Output"
}
],
"Connections": [
{
"LocalSlot": "Output",
"AttachmentRef": {
"Pass": "ContrastAdaptiveSharpeningPass",
"Attachment": "OutputColor"
}
},
{
"LocalSlot": "RawLightingOutput",
"AttachmentRef": {
"Pass": "BloomPass",
"Attachment": "InputOutput"
}
},
{
"LocalSlot": "LuminanceMipChainOutput",
"AttachmentRef": {
"Pass": "LightAdaptation",
"Attachment": "LuminanceMipChainOutput"
}
}
],
"PassRequests": [
{
"Name": "SMAA1xApplyLinearHDRColorPass",
"TemplateName": "SMAA1xApplyLinearHDRColorTemplate",
"Connections": [
{
"LocalSlot": "InputColor",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "LightingInput"
}
},
{
"LocalSlot": "InputDepth",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "Depth"
}
}
]
},
{
"Name": "TaaPass",
"TemplateName": "TaaTemplate",
"Enabled": false,
"Connections": [
{
"LocalSlot": "InputColor",
"AttachmentRef": {
"Pass": "SMAA1xApplyLinearHDRColorPass",
"Attachment": "OutputColor"
}
},
{
"LocalSlot": "InputDepth",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "Depth"
}
},
{
"LocalSlot": "MotionVectors",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "MotionVectors"
}
}
]
},
// Todo: remove the old depth of field implementation and rename NewDepthOfField -> DepthOfField
//{
// "Name": "DepthOfFieldPass",
// "TemplateName": "DepthOfFieldTemplate",
// "Enabled": true,
// "Connections": [
// {
// "LocalSlot": "DoFColorInput",
// "AttachmentRef": {
// "Pass": "TaaPass",
// "Attachment": "OutputColor"
// }
// },
// {
// "LocalSlot": "DoFDepthInput",
// "AttachmentRef": {
// "Pass": "Parent",
// "Attachment": "Depth"
// }
// }
// ]
//},
{
"Name": "DepthOfFieldPass",
"TemplateName": "NewDepthOfFieldTemplate",
"Enabled": true,
"Connections": [
{
"LocalSlot": "LightingBuffer",
"AttachmentRef": {
"Pass": "TaaPass",
"Attachment": "OutputColor"
}
},
{
"LocalSlot": "Depth",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "Depth"
}
}
]
},
{
"Name": "BloomPass",
"TemplateName": "BloomPassTemplate",
"Enabled": true,
"Connections": [
{
"LocalSlot": "InputOutput",
"AttachmentRef": {
"Pass": "DepthOfFieldPass",
"Attachment": "LightingBuffer"
}
}
]
},
{
"Name": "LightAdaptation",
"TemplateName": "LightAdaptationParentTemplate",
"Connections": [
{
"LocalSlot": "LightingInput",
"AttachmentRef": {
"Pass": "BloomPass",
"Attachment": "InputOutput"
}
},
{
"LocalSlot": "SwapChainOutput",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "SwapChainOutput"
}
}
]
},
{
"Name": "ContrastAdaptiveSharpeningPass",
"TemplateName": "ContrastAdaptiveSharpeningTemplate",
"Enabled": false,
"Connections": [
{
"LocalSlot": "InputColor",
"AttachmentRef": {
"Pass": "LightAdaptation",
"Attachment": "Output"
}
}
]
}
]
}
}
}