DeferredPipeline.materialpipeline 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {
  2. "shaderTemplates": [
  3. {
  4. "shader": "./DeferredMaterialPass.shader.template",
  5. "azsli": "./DeferredMaterialPass.azsli",
  6. "tag": "main"
  7. },
  8. {
  9. "shader": "./DeferredMaterialPass_CustomZ.shader.template",
  10. "azsli": "./DeferredMaterialPass.azsli",
  11. "tag": "main_customZ"
  12. },
  13. {
  14. "shader": "Materials/Pipelines/Common/DepthPass.shader.template",
  15. "azsli": "Materials/Pipelines/Common/DepthPass.azsli",
  16. "tag": "depth"
  17. },
  18. {
  19. "shader": "Materials/Pipelines/Common/DepthPass_CustomZ.shader.template",
  20. "azsli": "Materials/Pipelines/Common/DepthPass_CustomZ.azsli",
  21. "tag": "depth_customZ"
  22. },
  23. {
  24. "shader": "Materials/Pipelines/Common/ShadowmapPass.shader.template",
  25. "azsli": "Materials/Pipelines/Common/DepthPass.azsli",
  26. "tag": "shadow"
  27. },
  28. {
  29. "shader": "Materials/Pipelines/Common/ShadowmapPass_CustomZ.shader.template",
  30. "azsli": "Materials/Pipelines/Common/DepthPass_CustomZ.azsli",
  31. "tag": "shadow_customZ"
  32. },
  33. // This deferred pipeline uses the same transparent pass as the main pipeline
  34. {
  35. "shader": "Materials/Pipelines/MainPipeline/Transparent_StandardLighting.shader.template",
  36. "azsli": "Materials/Pipelines/MainPipeline/Transparent_StandardLighting.azsli",
  37. "tag": "transparent"
  38. },
  39. {
  40. "shader": "Materials/Pipelines/MainPipeline/TintedTransparent_StandardLighting.shader.template",
  41. "azsli": "Materials/Pipelines/MainPipeline/Transparent_StandardLighting.azsli",
  42. "tag": "tintedTransparent"
  43. },
  44. {
  45. "shader": "Materials/Pipelines/MainPipeline/Transparent_EnhancedLighting.shader.template",
  46. "azsli": "Materials/Pipelines/MainPipeline/Transparent_EnhancedLighting.azsli",
  47. "tag": "transparent"
  48. },
  49. {
  50. "shader": "Materials/Pipelines/MainPipeline/TintedTransparent_EnhancedLighting.shader.template",
  51. "azsli": "Materials/Pipelines/MainPipeline/Transparent_EnhancedLighting.azsli",
  52. "tag": "tintedTransparent"
  53. }
  54. ],
  55. "runtime": {
  56. "properties": [
  57. {
  58. "name": "isTransparent",
  59. "type": "Bool",
  60. "defaultValue": false
  61. },
  62. {
  63. "name": "isTintedTransparent",
  64. "type": "Bool",
  65. "defaultValue": false
  66. },
  67. {
  68. "name": "castShadows",
  69. "type": "Bool",
  70. "defaultValue": true
  71. },
  72. {
  73. "name": "doubleSided",
  74. "type": "Bool",
  75. "defaultValue": false
  76. },
  77. {
  78. "name": "hasPerPixelDepth",
  79. "type": "Bool",
  80. "defaultValue": false
  81. },
  82. {
  83. "name": "hasPerPixelClip",
  84. "type": "Bool",
  85. "defaultValue": false
  86. }
  87. ],
  88. "functors":
  89. [
  90. {
  91. "type": "Lua",
  92. "args": {
  93. //TODO(MaterialPipeline): Make the builder touch up this path so it can be relative to the .materialpipeline file
  94. "file": "Materials/Pipelines/Common/ShaderEnable.lua"
  95. }
  96. },
  97. {
  98. "type": "Lua",
  99. "args": {
  100. //TODO(MaterialPipeline): Make the builder touch up this path so it can be relative to the .materialpipeline file
  101. "file": "Materials/Pipelines/Common/DoubleSided.lua"
  102. }
  103. }
  104. ]
  105. },
  106. "pipelineScript": "./DeferredPipelineScript.lua"
  107. }