Taa.pass 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. },
  22. {
  23. "Name": "MotionVectors",
  24. "SlotType": "Input",
  25. "ShaderInputName": "m_motionVectors",
  26. "ScopeAttachmentUsage": "Shader"
  27. },
  28. {
  29. "Name": "LastFrameAccumulation",
  30. "SlotType": "Input",
  31. "ShaderInputName": "m_lastFrameAccumulation",
  32. "ScopeAttachmentUsage": "Shader"
  33. },
  34. {
  35. "Name": "OutputColor",
  36. "SlotType": "Output",
  37. "ShaderInputName": "m_outputColor",
  38. "ScopeAttachmentUsage": "Shader"
  39. }
  40. ],
  41. "ImageAttachments": [
  42. {
  43. "Name": "Accumulation1",
  44. "Lifetime": "Imported",
  45. "FormatSource": {
  46. "Pass": "This",
  47. "Attachment": "InputColor"
  48. },
  49. "SizeSource": {
  50. "Source": {
  51. "Pass": "This",
  52. "Attachment": "InputColor"
  53. }
  54. },
  55. "ImageDescriptor": {
  56. "Format": "R16G16B16A16_FLOAT",
  57. "BindFlags": "3",
  58. "SharedQueueMask": "1"
  59. }
  60. },
  61. {
  62. "Name": "Accumulation2",
  63. "Lifetime": "Imported",
  64. "FormatSource": {
  65. "Pass": "This",
  66. "Attachment": "InputColor"
  67. },
  68. "SizeSource": {
  69. "Source": {
  70. "Pass": "This",
  71. "Attachment": "InputColor"
  72. }
  73. },
  74. "ImageDescriptor": {
  75. "Format": "R16G16B16A16_FLOAT",
  76. "BindFlags": "3",
  77. "SharedQueueMask": "1"
  78. }
  79. }
  80. ],
  81. "FallbackConnections": [
  82. {
  83. "Input": "InputColor",
  84. "Output": "OutputColor"
  85. }
  86. ],
  87. "PassData": {
  88. "$type": "TaaPassData",
  89. "ShaderAsset": {
  90. "FilePath": "Shaders/PostProcessing/Taa.shader"
  91. },
  92. "Make Fullscreen Pass": true,
  93. "ShaderDataMappings": {
  94. "FloatMappings": [
  95. {
  96. "Name": "m_currentFrameContribution",
  97. "Value": 0.1
  98. },
  99. {
  100. "Name": "m_clampGamma",
  101. "Value": 1.0
  102. },
  103. {
  104. "Name": "m_maxDeviationBeforeDampening",
  105. "Value": 0.5
  106. }
  107. ]
  108. },
  109. "NumJitterPositions": 1
  110. }
  111. }
  112. }
  113. }