DiffuseComposite.pass 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "PassAsset",
  5. "ClassData": {
  6. "PassTemplate": {
  7. "Name": "DiffuseCompositePassTemplate",
  8. "PassClass": "FullScreenTriangle",
  9. "Slots": [
  10. {
  11. "Name": "DownsampledIrradianceInput",
  12. "SlotType": "Input",
  13. "ScopeAttachmentUsage": "Shader"
  14. },
  15. {
  16. "Name": "DownsampledDepthStencilTextureInput",
  17. "SlotType": "Input",
  18. "ScopeAttachmentUsage": "Shader",
  19. "ImageViewDesc": {
  20. "AspectFlags": [
  21. "Depth"
  22. ]
  23. }
  24. },
  25. {
  26. "Name": "DownsampledNormalInput",
  27. "SlotType": "Input",
  28. "ScopeAttachmentUsage": "Shader"
  29. },
  30. {
  31. "Name": "AlbedoInput",
  32. "SlotType": "Input",
  33. "ScopeAttachmentUsage": "Shader"
  34. },
  35. {
  36. "Name": "NormalInput",
  37. "SlotType": "Input",
  38. "ScopeAttachmentUsage": "Shader"
  39. },
  40. {
  41. "Name": "DepthStencilTextureInput",
  42. "SlotType": "Input",
  43. "ScopeAttachmentUsage": "Shader",
  44. "ImageViewDesc": {
  45. "AspectFlags": [
  46. "Depth"
  47. ]
  48. }
  49. },
  50. {
  51. "Name": "DiffuseInputOutput",
  52. "SlotType": "InputOutput",
  53. "ScopeAttachmentUsage": "RenderTarget"
  54. },
  55. {
  56. "Name": "DepthStencilInputOutput",
  57. "SlotType": "InputOutput",
  58. "ScopeAttachmentUsage": "DepthStencil",
  59. "ImageViewDesc": {
  60. "AspectFlags": [
  61. "Stencil"
  62. ]
  63. }
  64. }
  65. ],
  66. "PassData": {
  67. "$type": "FullscreenTrianglePassData",
  68. "ShaderAsset": {
  69. "FilePath": "Shaders/DiffuseGlobalIllumination/DiffuseComposite.shader"
  70. },
  71. "StencilRef": 128, // See RenderCommon.h and DiffuseComposite.shader
  72. "BindViewSrg": true
  73. }
  74. }
  75. }
  76. }