TwoPassesPipeline.pass 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "PassAsset",
  5. "ClassData": {
  6. "PassTemplate": {
  7. "Name": "TwoPassesPipelineTemplate",
  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": "ForwardPass",
  27. "TemplateName": "ForwardPassExampleTemplate",
  28. "PassData": {
  29. "$type": "RasterPassData",
  30. "DrawListTag": "multiViewForward",
  31. "BindViewSrg": true,
  32. "PassSrgShaderAsset": {
  33. "FilePath": "Shaders/ForwardPassSrg.shader"
  34. }
  35. }
  36. },
  37. {
  38. "Name": "SkyBoxPass",
  39. "TemplateName": "MultiViewSkyBoxTemplate",
  40. "Enabled": true,
  41. "Connections": [
  42. {
  43. "LocalSlot": "SpecularInputOutput",
  44. "AttachmentRef": {
  45. "Pass": "ForwardPass",
  46. "Attachment": "LightingOutput"
  47. }
  48. },
  49. {
  50. "LocalSlot": "SkyBoxDepth",
  51. "AttachmentRef": {
  52. "Pass": "ForwardPass",
  53. "Attachment": "DepthOutput"
  54. }
  55. }
  56. ]
  57. }
  58. ]
  59. }
  60. }
  61. }