123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- {
- "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": "PipelineOutput",
- "SlotType": "InputOutput"
- },
- // Outputs...
- {
- "Name": "Output",
- "SlotType": "Output"
- },
- // Debug Outputs...
- {
- "Name": "RawLightingOutput",
- "SlotType": "Output"
- },
- {
- "Name": "LuminanceMipChainOutput",
- "SlotType": "Output"
- }
- ],
- "Connections": [
- {
- "LocalSlot": "Output",
- "AttachmentRef": {
- "Pass": "ChromaticAberrationPass",
- "Attachment": "Output"
- }
- },
- {
- "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": "TaaParentTemplate",
- "Enabled": true,
- "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": "PipelineOutput",
- "AttachmentRef": {
- "Pass": "Parent",
- "Attachment": "PipelineOutput"
- }
- }
- ]
- },
- {
- "Name": "ContrastAdaptiveSharpeningPass",
- "TemplateName": "ContrastAdaptiveSharpeningTemplate",
- "Enabled": true,
- "Connections": [
- {
- "LocalSlot": "InputColor",
- "AttachmentRef": {
- "Pass": "LightAdaptation",
- "Attachment": "Output"
- }
- }
- ]
- },
- {
- "Name": "ChromaticAberrationPass",
- "TemplateName": "ChromaticAberrationTemplate",
- "Connections": [
- {
- "LocalSlot": "Input",
- "AttachmentRef": {
- "Pass": "ContrastAdaptiveSharpeningPass",
- "Attachment": "OutputColor"
- }
- }
- ]
- }
- ]
- }
- }
- }
|