PostProcessParent.pass 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. {
  116. "Name": "DepthOfFieldPass",
  117. "TemplateName": "NewDepthOfFieldTemplate",
  118. "Enabled": true,
  119. "Connections": [
  120. {
  121. "LocalSlot": "LightingBuffer",
  122. "AttachmentRef": {
  123. "Pass": "TaaPass",
  124. "Attachment": "OutputColor"
  125. }
  126. },
  127. {
  128. "LocalSlot": "Depth",
  129. "AttachmentRef": {
  130. "Pass": "Parent",
  131. "Attachment": "Depth"
  132. }
  133. }
  134. ]
  135. },
  136. {
  137. "Name": "BloomPass",
  138. "TemplateName": "BloomPassTemplate",
  139. "Enabled": true,
  140. "Connections": [
  141. {
  142. "LocalSlot": "InputOutput",
  143. "AttachmentRef": {
  144. "Pass": "DepthOfFieldPass",
  145. "Attachment": "LightingBuffer"
  146. }
  147. }
  148. ]
  149. },
  150. {
  151. "Name": "LightAdaptation",
  152. "TemplateName": "LightAdaptationParentTemplate",
  153. "Connections": [
  154. {
  155. "LocalSlot": "LightingInput",
  156. "AttachmentRef": {
  157. "Pass": "BloomPass",
  158. "Attachment": "InputOutput"
  159. }
  160. },
  161. {
  162. "LocalSlot": "PipelineOutput",
  163. "AttachmentRef": {
  164. "Pass": "Parent",
  165. "Attachment": "PipelineOutput"
  166. }
  167. }
  168. ]
  169. },
  170. {
  171. "Name": "ContrastAdaptiveSharpeningPass",
  172. "TemplateName": "ContrastAdaptiveSharpeningTemplate",
  173. "Enabled": true,
  174. "Connections": [
  175. {
  176. "LocalSlot": "InputColor",
  177. "AttachmentRef": {
  178. "Pass": "LightAdaptation",
  179. "Attachment": "Output"
  180. }
  181. }
  182. ]
  183. },
  184. {
  185. "Name": "ChromaticAberrationPass",
  186. "TemplateName": "ChromaticAberrationTemplate",
  187. "Connections": [
  188. {
  189. "LocalSlot": "Input",
  190. "AttachmentRef": {
  191. "Pass": "ContrastAdaptiveSharpeningPass",
  192. "Attachment": "OutputColor"
  193. }
  194. }
  195. ]
  196. }
  197. ]
  198. }
  199. }
  200. }