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

85 lines
2.9 KiB
Plaintext

{
"Type": "JsonSerialization",
"Version": 1,
"ClassName": "PassAsset",
"ClassData": {
"PassTemplate": {
"Name": "MotionVectorParentTemplate",
"PassClass": "ParentPass",
"Slots": [
// Inputs...
{
"Name": "SkinnedMeshes",
"SlotType": "Input"
},
{
"Name": "Depth",
"SlotType": "Input"
},
// SwapChain here is only used to reference the frame height and format
{
"Name": "SwapChainOutput",
"SlotType": "InputOutput"
},
{
"Name": "MotionVectorOutput",
"SlotType": "Output"
}
],
"Connections": [
{
"LocalSlot": "MotionVectorOutput",
"AttachmentRef": {
"Pass": "MeshMotionVectorPass",
"Attachment": "MotionInputOutput"
}
}
],
"PassRequests": [
{
"Name": "CameraMotionVectorPass",
"TemplateName": "CameraMotionVectorPassTemplate",
"Connections": [
{
"LocalSlot": "Input",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "Depth"
}
}
],
"PassData": {
"$type": "RasterPassData",
"PipelineViewTag": "MainCamera"
}
},
{
"Name": "MeshMotionVectorPass",
"TemplateName": "MeshMotionVectorPassTemplate",
"Connections": [
{
"LocalSlot": "SkinnedMeshes",
"AttachmentRef": {
"Pass": "Parent",
"Attachment": "SkinnedMeshes"
}
},
{
"LocalSlot": "MotionInputOutput",
"AttachmentRef": {
"Pass": "CameraMotionVectorPass",
"Attachment": "Output"
}
}
],
"PassData": {
"$type": "RasterPassData",
"DrawListTag": "motion",
"PipelineViewTag": "MainCamera"
}
}
]
}
}
}