RayTracingAmbientOcclusion.pass 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "PassAsset",
  5. "ClassData": {
  6. "PassTemplate": {
  7. "Name": "RayTracingAmbientOcclusionPassTemplate",
  8. "PassClass": "RayTracingAmbientOcclusionPass",
  9. "Slots": [
  10. {
  11. "Name": "InputDepth",
  12. "ShaderInputName": "m_depth",
  13. "SlotType": "Input",
  14. "ScopeAttachmentUsage": "Shader",
  15. "ImageViewDesc": {
  16. "AspectFlags": [
  17. "Depth"
  18. ]
  19. }
  20. },
  21. {
  22. "Name": "WorldNormal",
  23. "ShaderInputName": "m_worldNormalMap",
  24. "SlotType": "Input",
  25. "ScopeAttachmentUsage": "Shader"
  26. },
  27. {
  28. "Name": "OutputAO",
  29. "ShaderInputName": "m_outputAO",
  30. "SlotType": "Output",
  31. "ScopeAttachmentUsage": "Shader",
  32. "LoadStoreAction": {
  33. "ClearValue": {
  34. "Value": [
  35. 0.5,
  36. 0.0,
  37. 0.0,
  38. {}
  39. ]
  40. },
  41. "LoadAction": "Clear",
  42. "LoadActionStencil": "Clear"
  43. }
  44. }
  45. ],
  46. "ImageAttachments": [
  47. {
  48. "Name": "OutputAOImage",
  49. "SizeSource": {
  50. "Source": {
  51. "Pass": "Parent",
  52. "Attachment": "PipelineOutput"
  53. }
  54. },
  55. "FormatSource": {
  56. "Pass": "Parent",
  57. "Attachment": "PipelineOutput"
  58. }
  59. }
  60. ],
  61. "Connections": [
  62. {
  63. "LocalSlot": "OutputAO",
  64. "AttachmentRef": {
  65. "Pass": "This",
  66. "Attachment": "OutputAOImage"
  67. }
  68. }
  69. ]
  70. }
  71. }
  72. }