ColorblindnessSimulation.pass 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "Type": "JsonSerialization",
  3. "Version": 1,
  4. "ClassName": "PassAsset",
  5. "ClassData": {
  6. "PassTemplate": {
  7. "Name": "ColorBlindPassTemplate",
  8. "PassClass": "FullScreenTriangle",
  9. "Slots": [
  10. {
  11. "Name": "Input",
  12. "SlotType": "Input",
  13. "ScopeAttachmentUsage": "Shader"
  14. },
  15. {
  16. "Name": "Output",
  17. "SlotType": "Output",
  18. "ScopeAttachmentUsage": "RenderTarget"
  19. }
  20. ],
  21. "ImageAttachments": [
  22. {
  23. "Name": "ColorCorrectedImage",
  24. "SizeSource": {
  25. "Source": {
  26. "Pass": "This",
  27. "Attachment": "Input"
  28. }
  29. },
  30. "FormatSource": {
  31. "Pass": "This",
  32. "Attachment": "Input"
  33. },
  34. "ImageDescriptor": {
  35. "BindFlags": [
  36. "CopyRead",
  37. "Color",
  38. "ShaderReadWrite",
  39. "ShaderWrite",
  40. "ShaderRead"
  41. ]
  42. }
  43. }
  44. ],
  45. "Connections": [
  46. {
  47. "LocalSlot": "Output",
  48. "AttachmentRef": {
  49. "Pass": "This",
  50. "Attachment": "ColorCorrectedImage"
  51. }
  52. }
  53. ],
  54. "PassData": {
  55. "$type": "FullscreenTrianglePassData",
  56. "ShaderAsset": {
  57. "FilePath": "Shaders/PostProcessing/ColorblindnessSimulation.shader"
  58. }
  59. }
  60. }
  61. }
  62. }