PostProcessParent.pass 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "PassAsset",
  5. "ClassData": {
  6. "PassTemplate": {
  7. "Name": "PostProcessParentTemplate",
  8. "PassClass": "ParentPass",
  9. "Slots": [
  10. // Inputs...
  11. {
  12. "Name": "LightingInput",
  13. "SlotType": "Input"
  14. },
  15. {
  16. "Name": "Depth",
  17. "SlotType": "Input"
  18. },
  19. {
  20. "Name": "MotionVectors",
  21. "SlotType": "Input"
  22. },
  23. // SwapChain here is only used to reference the frame height and format
  24. {
  25. "Name": "PipelineOutput",
  26. "SlotType": "InputOutput"
  27. },
  28. // Outputs...
  29. {
  30. "Name": "Output",
  31. "SlotType": "Output"
  32. },
  33. // Debug Outputs...
  34. {
  35. "Name": "RawLightingOutput",
  36. "SlotType": "Output"
  37. },
  38. {
  39. "Name": "LuminanceMipChainOutput",
  40. "SlotType": "Output"
  41. }
  42. ],
  43. "Connections": [
  44. {
  45. "LocalSlot": "Output",
  46. "AttachmentRef": {
  47. "Pass": "ChromaticAberrationPass",
  48. "Attachment": "Output"
  49. }
  50. },
  51. {
  52. "LocalSlot": "RawLightingOutput",
  53. "AttachmentRef": {
  54. "Pass": "BloomPass",
  55. "Attachment": "InputOutput"
  56. }
  57. },
  58. {
  59. "LocalSlot": "LuminanceMipChainOutput",
  60. "AttachmentRef": {
  61. "Pass": "LightAdaptation",
  62. "Attachment": "LuminanceMipChainOutput"
  63. }
  64. }
  65. ],
  66. "PassRequests": [
  67. {
  68. "Name": "SMAA1xApplyLinearHDRColorPass",
  69. "TemplateName": "SMAA1xApplyLinearHDRColorTemplate",
  70. "Connections": [
  71. {
  72. "LocalSlot": "InputColor",
  73. "AttachmentRef": {
  74. "Pass": "Parent",
  75. "Attachment": "LightingInput"
  76. }
  77. },
  78. {
  79. "LocalSlot": "InputDepth",
  80. "AttachmentRef": {
  81. "Pass": "Parent",
  82. "Attachment": "Depth"
  83. }
  84. }
  85. ]
  86. },
  87. {
  88. "Name": "TaaPass",
  89. "TemplateName": "TaaParentTemplate",
  90. "Enabled": true,
  91. "Connections": [
  92. {
  93. "LocalSlot": "InputColor",
  94. "AttachmentRef": {
  95. "Pass": "SMAA1xApplyLinearHDRColorPass",
  96. "Attachment": "OutputColor"
  97. }
  98. },
  99. {
  100. "LocalSlot": "InputDepth",
  101. "AttachmentRef": {
  102. "Pass": "Parent",
  103. "Attachment": "Depth"
  104. }
  105. },
  106. {
  107. "LocalSlot": "MotionVectors",
  108. "AttachmentRef": {
  109. "Pass": "Parent",
  110. "Attachment": "MotionVectors"
  111. }
  112. }
  113. ]
  114. },
  115. // Todo: remove the old depth of field implementation and rename NewDepthOfField -> DepthOfField
  116. //{
  117. // "Name": "DepthOfFieldPass",
  118. // "TemplateName": "DepthOfFieldTemplate",
  119. // "Enabled": true,
  120. // "Connections": [
  121. // {
  122. // "LocalSlot": "DoFColorInput",
  123. // "AttachmentRef": {
  124. // "Pass": "TaaPass",
  125. // "Attachment": "OutputColor"
  126. // }
  127. // },
  128. // {
  129. // "LocalSlot": "DoFDepthInput",
  130. // "AttachmentRef": {
  131. // "Pass": "Parent",
  132. // "Attachment": "Depth"
  133. // }
  134. // }
  135. // ]
  136. //},
  137. {
  138. "Name": "DepthOfFieldPass",
  139. "TemplateName": "NewDepthOfFieldTemplate",
  140. "Enabled": true,
  141. "Connections": [
  142. {
  143. "LocalSlot": "LightingBuffer",
  144. "AttachmentRef": {
  145. "Pass": "TaaPass",
  146. "Attachment": "OutputColor"
  147. }
  148. },
  149. {
  150. "LocalSlot": "Depth",
  151. "AttachmentRef": {
  152. "Pass": "Parent",
  153. "Attachment": "Depth"
  154. }
  155. }
  156. ]
  157. },
  158. {
  159. "Name": "BloomPass",
  160. "TemplateName": "BloomPassTemplate",
  161. "Enabled": true,
  162. "Connections": [
  163. {
  164. "LocalSlot": "InputOutput",
  165. "AttachmentRef": {
  166. "Pass": "DepthOfFieldPass",
  167. "Attachment": "LightingBuffer"
  168. }
  169. }
  170. ]
  171. },
  172. {
  173. "Name": "LightAdaptation",
  174. "TemplateName": "LightAdaptationParentTemplate",
  175. "Connections": [
  176. {
  177. "LocalSlot": "LightingInput",
  178. "AttachmentRef": {
  179. "Pass": "BloomPass",
  180. "Attachment": "InputOutput"
  181. }
  182. },
  183. {
  184. "LocalSlot": "PipelineOutput",
  185. "AttachmentRef": {
  186. "Pass": "Parent",
  187. "Attachment": "PipelineOutput"
  188. }
  189. }
  190. ]
  191. },
  192. {
  193. "Name": "ContrastAdaptiveSharpeningPass",
  194. "TemplateName": "ContrastAdaptiveSharpeningTemplate",
  195. "Enabled": true,
  196. "Connections": [
  197. {
  198. "LocalSlot": "InputColor",
  199. "AttachmentRef": {
  200. "Pass": "LightAdaptation",
  201. "Attachment": "Output"
  202. }
  203. }
  204. ]
  205. },
  206. {
  207. "Name": "ChromaticAberrationPass",
  208. "TemplateName": "ChromaticAberrationTemplate",
  209. "Connections": [
  210. {
  211. "LocalSlot": "Input",
  212. "AttachmentRef": {
  213. "Pass": "ContrastAdaptiveSharpeningPass",
  214. "Attachment": "OutputColor"
  215. }
  216. }
  217. ]
  218. }
  219. ]
  220. }
  221. }
  222. }