SsaoPipeline.pass 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "PassAsset",
  5. "ClassData": {
  6. "PassTemplate": {
  7. "Name": "SsaoPipeline",
  8. "PassClass": "ParentPass",
  9. "Slots": [
  10. {
  11. "Name": "PipelineOutput",
  12. "SlotType": "InputOutput"
  13. }
  14. ],
  15. "PassData": {
  16. "$type": "PassData",
  17. "PipelineGlobalConnections": [
  18. {
  19. "GlobalName": "PipelineOutput",
  20. "Slot": "PipelineOutput"
  21. }
  22. ]
  23. },
  24. "PassRequests": [
  25. {
  26. "Name": "MorphTargetPass",
  27. "TemplateName": "MorphTargetPassTemplate"
  28. },
  29. {
  30. "Name": "SkinningPass",
  31. "TemplateName": "SkinningPassTemplate",
  32. "Connections": [
  33. {
  34. "LocalSlot": "SkinnedMeshOutputStream",
  35. "AttachmentRef": {
  36. "Pass": "MorphTargetPass",
  37. "Attachment": "MorphTargetDeltaOutput"
  38. }
  39. }
  40. ]
  41. },
  42. {
  43. "Name": "RayTracingAccelerationStructurePass",
  44. "TemplateName": "RayTracingAccelerationStructurePassTemplate"
  45. },
  46. {
  47. "Name": "DepthPrePass",
  48. "TemplateName": "DepthParentTemplate",
  49. "Connections": [
  50. {
  51. "LocalSlot": "SkinnedMeshes",
  52. "AttachmentRef": {
  53. "Pass": "SkinningPass",
  54. "Attachment": "SkinnedMeshOutputStream"
  55. }
  56. },
  57. {
  58. "LocalSlot": "PipelineOutput",
  59. "AttachmentRef": {
  60. "Pass": "PipelineGlobal",
  61. "Attachment": "PipelineOutput"
  62. }
  63. }
  64. ]
  65. },
  66. {
  67. "Name": "LightCullingPass",
  68. "TemplateName": "LightCullingParentTemplate",
  69. "Connections": [
  70. {
  71. "LocalSlot": "SkinnedMeshes",
  72. "AttachmentRef": {
  73. "Pass": "SkinningPass",
  74. "Attachment": "SkinnedMeshOutputStream"
  75. }
  76. },
  77. {
  78. "LocalSlot": "DepthMSAA",
  79. "AttachmentRef": {
  80. "Pass": "DepthPrePass",
  81. "Attachment": "DepthMSAA"
  82. }
  83. },
  84. {
  85. "LocalSlot": "PipelineOutput",
  86. "AttachmentRef": {
  87. "Pass": "Parent",
  88. "Attachment": "PipelineOutput"
  89. }
  90. }
  91. ]
  92. },
  93. {
  94. "Name": "Shadows",
  95. "TemplateName": "ShadowParentTemplate",
  96. "Connections": [
  97. {
  98. "LocalSlot": "SkinnedMeshes",
  99. "AttachmentRef": {
  100. "Pass": "SkinningPass",
  101. "Attachment": "SkinnedMeshOutputStream"
  102. }
  103. },
  104. {
  105. "LocalSlot": "PipelineOutput",
  106. "AttachmentRef": {
  107. "Pass": "PipelineGlobal",
  108. "Attachment": "PipelineOutput"
  109. }
  110. },
  111. {
  112. "LocalSlot": "Depth",
  113. "AttachmentRef": {
  114. "Pass": "DepthPrePass",
  115. "Attachment": "DepthMSAA"
  116. }
  117. }
  118. ]
  119. },
  120. {
  121. "Name": "Forward",
  122. "TemplateName": "ForwardPassTemplate",
  123. "Connections": [
  124. // Inputs...
  125. {
  126. "LocalSlot": "DirectionalLightShadowmap",
  127. "AttachmentRef": {
  128. "Pass": "Shadows",
  129. "Attachment": "DirectionalShadowmap"
  130. }
  131. },
  132. {
  133. "LocalSlot": "ExponentialShadowmapDirectional",
  134. "AttachmentRef": {
  135. "Pass": "Shadows",
  136. "Attachment": "DirectionalESM"
  137. }
  138. },
  139. {
  140. "LocalSlot": "ProjectedShadowmap",
  141. "AttachmentRef": {
  142. "Pass": "Shadows",
  143. "Attachment": "ProjectedShadowmap"
  144. }
  145. },
  146. {
  147. "LocalSlot": "ExponentialShadowmapProjected",
  148. "AttachmentRef": {
  149. "Pass": "Shadows",
  150. "Attachment": "ProjectedESM"
  151. }
  152. },
  153. {
  154. "LocalSlot": "TileLightData",
  155. "AttachmentRef": {
  156. "Pass": "LightCullingPass",
  157. "Attachment": "TileLightData"
  158. }
  159. },
  160. {
  161. "LocalSlot": "LightListRemapped",
  162. "AttachmentRef": {
  163. "Pass": "LightCullingPass",
  164. "Attachment": "LightListRemapped"
  165. }
  166. },
  167. // Input/Outputs...
  168. {
  169. "LocalSlot": "DepthStencilInputOutput",
  170. "AttachmentRef": {
  171. "Pass": "DepthPrePass",
  172. "Attachment": "DepthMSAA"
  173. }
  174. }
  175. ],
  176. "PassData": {
  177. "$type": "RasterPassData",
  178. "DrawListTag": "forward",
  179. "PipelineViewTag": "MainCamera",
  180. "PassSrgShaderAsset": {
  181. "FilePath": "Shaders/ForwardPassSrg.shader"
  182. }
  183. }
  184. },
  185. {
  186. "Name": "RayTracingAmbientOcclusionPass",
  187. "TemplateName": "RayTracingAmbientOcclusionPassTemplate",
  188. "Connections": [
  189. {
  190. "LocalSlot": "InputDepth",
  191. "AttachmentRef": {
  192. "Pass": "Forward",
  193. "Attachment": "DepthStencilInputOutput"
  194. }
  195. },
  196. {
  197. "LocalSlot": "WorldNormal",
  198. "AttachmentRef": {
  199. "Pass": "Forward",
  200. "Attachment": "NormalOutput"
  201. }
  202. }
  203. ]
  204. },
  205. {
  206. "Name": "DebugWhiteTexture",
  207. "TemplateName": "FullscreenOutputOnlyTemplate",
  208. "ImageAttachments": [
  209. {
  210. "Name": "OutputAttachment",
  211. "SizeSource": {
  212. "Source": {
  213. "Pass": "Parent",
  214. "Attachment": "PipelineOutput"
  215. }
  216. },
  217. "FormatSource": {
  218. "Pass": "Parent",
  219. "Attachment": "PipelineOutput"
  220. }
  221. }
  222. ],
  223. "Connections": [
  224. {
  225. "LocalSlot": "Output",
  226. "AttachmentRef": {
  227. "Pass": "This",
  228. "Attachment": "OutputAttachment"
  229. }
  230. }
  231. ],
  232. "PassData": {
  233. "$type": "FullscreenTrianglePassData",
  234. "ShaderDataMappings": {
  235. "ColorMappings": [
  236. {
  237. "Name": "m_color",
  238. "Value": [ 1.0, 1.0, 1.0, 1.0 ]
  239. }
  240. ]
  241. },
  242. "ShaderAsset": {
  243. "FilePath": "Shaders/PostProcessing/UniformColor.shader"
  244. }
  245. }
  246. },
  247. {
  248. "Name": "Ssao",
  249. "TemplateName": "SsaoParentTemplate",
  250. "Connections": [
  251. {
  252. "LocalSlot": "Modulate",
  253. "AttachmentRef": {
  254. "Pass": "DebugWhiteTexture",
  255. "Attachment": "Output"
  256. }
  257. }
  258. ]
  259. },
  260. {
  261. "Name": "SelectorPass",
  262. "TemplateName": "SelectorPassTemplate",
  263. "Enabled": true,
  264. "Connections": [
  265. {
  266. "LocalSlot": "Input1",
  267. "AttachmentRef": {
  268. "Pass": "RayTracingAmbientOcclusionPass",
  269. "Attachment": "OutputAO"
  270. }
  271. },
  272. {
  273. "LocalSlot": "Input2",
  274. "AttachmentRef": {
  275. "Pass": "Ssao",
  276. "Attachment": "Output"
  277. }
  278. }
  279. ]
  280. },
  281. {
  282. "Name": "DisplayMapperPass",
  283. "TemplateName": "DisplayMapperTemplate",
  284. "Enabled": true,
  285. "Connections": [
  286. {
  287. "LocalSlot": "Input",
  288. "AttachmentRef": {
  289. "Pass": "SelectorPass",
  290. "Attachment": "Output"
  291. }
  292. },
  293. {
  294. "LocalSlot": "PipelineOutput",
  295. "AttachmentRef": {
  296. "Pass": "Parent",
  297. "Attachment": "PipelineOutput"
  298. }
  299. }
  300. ],
  301. "PassData": {
  302. "$type": "DisplayMapperPassData",
  303. "DisplayMapperConfig": {
  304. "Name": "MainPipeline",
  305. "OperationType": "GammaSRGB",
  306. "LdrGradingLutEnabled": "False"
  307. }
  308. }
  309. },
  310. {
  311. "Name": "ImGuiPass",
  312. "TemplateName": "ImGuiPassTemplate",
  313. "Enabled": true,
  314. "Connections": [
  315. {
  316. "LocalSlot": "InputOutput",
  317. "AttachmentRef": {
  318. "Pass": "DisplayMapperPass",
  319. "Attachment": "Output"
  320. }
  321. }
  322. ],
  323. "PassData": {
  324. "$type": "ImGuiPassData",
  325. "IsDefaultImGui": true
  326. }
  327. },
  328. {
  329. "Name": "2DPass",
  330. "TemplateName": "UIPassTemplate",
  331. "Enabled": true,
  332. "Connections": [
  333. {
  334. "LocalSlot": "InputOutput",
  335. "AttachmentRef": {
  336. "Pass": "ImGuiPass",
  337. "Attachment": "InputOutput"
  338. }
  339. },
  340. {
  341. "LocalSlot": "DepthInputOutput",
  342. "AttachmentRef": {
  343. "Pass": "DepthPrePass",
  344. "Attachment": "Depth"
  345. }
  346. }
  347. ],
  348. "PassData": {
  349. "$type": "RasterPassData",
  350. "DrawListTag": "2dpass",
  351. "PipelineViewTag": "MainCamera"
  352. }
  353. },
  354. {
  355. "Name": "CopyToSwapChain",
  356. "TemplateName": "FullscreenCopyTemplate",
  357. "Connections": [
  358. {
  359. "LocalSlot": "Input",
  360. "AttachmentRef": {
  361. "Pass": "2DPass",
  362. "Attachment": "InputOutput"
  363. }
  364. },
  365. {
  366. "LocalSlot": "Output",
  367. "AttachmentRef": {
  368. "Pass": "Parent",
  369. "Attachment": "PipelineOutput"
  370. }
  371. }
  372. ]
  373. }
  374. ]
  375. }
  376. }
  377. }