Taa.pass 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "PassAsset",
  5. "ClassData": {
  6. "PassTemplate": {
  7. "Name": "TaaTemplate",
  8. "PassClass": "TaaPass",
  9. "Slots": [
  10. {
  11. "Name": "InputColor",
  12. "SlotType": "Input",
  13. "ShaderInputName": "m_inputColor",
  14. "ScopeAttachmentUsage": "Shader"
  15. },
  16. {
  17. "Name": "InputDepth",
  18. "SlotType": "Input",
  19. "ShaderInputName": "m_inputDepth",
  20. "ScopeAttachmentUsage": "Shader",
  21. "ImageViewDesc": {
  22. "AspectFlags": [
  23. "Depth"
  24. ]
  25. }
  26. },
  27. {
  28. "Name": "MotionVectors",
  29. "SlotType": "Input",
  30. "ShaderInputName": "m_motionVectors",
  31. "ScopeAttachmentUsage": "Shader"
  32. },
  33. {
  34. "Name": "LastFrameAccumulation",
  35. "SlotType": "Input",
  36. "ShaderInputName": "m_lastFrameAccumulation",
  37. "ScopeAttachmentUsage": "Shader"
  38. },
  39. {
  40. "Name": "OutputColor",
  41. "SlotType": "Output",
  42. "ShaderInputName": "m_outputColor",
  43. "ScopeAttachmentUsage": "Shader"
  44. }
  45. ],
  46. "ImageAttachments": [
  47. {
  48. "Name": "Accumulation1",
  49. "Lifetime": "Imported",
  50. "FormatSource": {
  51. "Pass": "This",
  52. "Attachment": "InputColor"
  53. },
  54. "SizeSource": {
  55. "Source": {
  56. "Pass": "This",
  57. "Attachment": "InputColor"
  58. }
  59. },
  60. "ImageDescriptor": {
  61. "Format": "R16G16B16A16_FLOAT",
  62. "BindFlags": "ShaderReadWrite",
  63. "SharedQueueMask": "Graphics"
  64. }
  65. },
  66. {
  67. "Name": "Accumulation2",
  68. "Lifetime": "Imported",
  69. "FormatSource": {
  70. "Pass": "This",
  71. "Attachment": "InputColor"
  72. },
  73. "SizeSource": {
  74. "Source": {
  75. "Pass": "This",
  76. "Attachment": "InputColor"
  77. }
  78. },
  79. "ImageDescriptor": {
  80. "Format": "R16G16B16A16_FLOAT",
  81. "BindFlags": "ShaderReadWrite",
  82. "SharedQueueMask": "Graphics"
  83. }
  84. }
  85. ],
  86. "FallbackConnections": [
  87. {
  88. "Input": "InputColor",
  89. "Output": "OutputColor"
  90. }
  91. ],
  92. "PassData": {
  93. "$type": "TaaPassData",
  94. "ShaderAsset": {
  95. "FilePath": "Shaders/PostProcessing/Taa.shader"
  96. },
  97. "Make Fullscreen Pass": true,
  98. "ShaderDataMappings": {
  99. "FloatMappings": [
  100. {
  101. "Name": "m_currentFrameContribution",
  102. "Value": 0.1
  103. },
  104. {
  105. "Name": "m_clampGamma",
  106. "Value": 1.0
  107. },
  108. {
  109. "Name": "m_maxDeviationBeforeDampening",
  110. "Value": 0.5
  111. }
  112. ]
  113. },
  114. "NumJitterPositions": 1
  115. }
  116. }
  117. }
  118. }