BloomHDR.xml 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <renderpath>
  2. <rendertarget name="bright2" tag="BloomHDR" sizedivisor="2 2" format="rgba16f" filter="true" />
  3. <rendertarget name="bright4" tag="BloomHDR" sizedivisor="4 4" format="rgba16f" filter="true" />
  4. <rendertarget name="bright8" tag="BloomHDR" sizedivisor="8 8" format="rgba16f" filter="true" />
  5. <rendertarget name="bright16" tag="BloomHDR" sizedivisor="16 16" format="rgba16f" filter="true" />
  6. <rendertarget name="blur2" tag="BloomHDR" sizedivisor="2 2" format="rgba16f" filter="true" />
  7. <rendertarget name="blur4" tag="BloomHDR" sizedivisor="4 4" format="rgba16f" filter="true" />
  8. <rendertarget name="blur8" tag="BloomHDR" sizedivisor="8 8" format="rgba16f" filter="true" />
  9. <rendertarget name="blur16" tag="BloomHDR" sizedivisor="16 16" format="rgba16f" filter="true" />
  10. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="BRIGHT" psdefines="BRIGHT" output="bright2">
  11. <parameter name="BloomHDRThreshold" value="0.8" />
  12. <texture unit="diffuse" name="viewport" />
  13. </command>
  14. <command type="quad" tag="BloomHDR" vs="CopyFramebuffer" ps="CopyFramebuffer" output="bright4">
  15. <texture unit="diffuse" name="bright2" />
  16. </command>
  17. <command type="quad" tag="BloomHDR" vs="CopyFramebuffer" ps="CopyFramebuffer" output="bright8">
  18. <texture unit="diffuse" name="bright4" />
  19. </command>
  20. <command type="quad" tag="BloomHDR" vs="CopyFramebuffer" ps="CopyFramebuffer" output="bright16">
  21. <texture unit="diffuse" name="bright8" />
  22. </command>
  23. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="BLUR16" psdefines="BLUR16" output="blur16">
  24. <parameter name="BloomHDRBlurDir" value="1.0 0.0" />
  25. <parameter name="BloomHDRBlurRadius" value="1.0" />
  26. <parameter name="BloomHDRBlurSigma" value="2.0" />
  27. <texture unit="diffuse" name="bright16" />
  28. </command>
  29. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="BLUR16" psdefines="BLUR16" output="bright16">
  30. <parameter name="BloomHDRBlurDir" value="0.0 1.0" />
  31. <parameter name="BloomHDRBlurRadius" value="1.0" />
  32. <parameter name="BloomHDRBlurSigma" value="2.0" />
  33. <texture unit="diffuse" name="blur16" />
  34. </command>
  35. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="COMBINE16" psdefines="COMBINE16" output="blur8">
  36. <texture unit="diffuse" name="bright8" />
  37. <texture unit="normal" name="bright16" />
  38. </command>
  39. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="BLUR8" psdefines="BLUR8" output="bright8">
  40. <parameter name="BloomHDRBlurDir" value="1.0 0.0" />
  41. <parameter name="BloomHDRBlurRadius" value="1.0" />
  42. <parameter name="BloomHDRBlurSigma" value="2.0" />
  43. <texture unit="diffuse" name="blur8" />
  44. </command>
  45. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="BLUR8" psdefines="BLUR8" output="blur8">
  46. <parameter name="BloomHDRBlurDir" value="0.0 1.0" />
  47. <parameter name="BloomHDRBlurRadius" value="1.0" />
  48. <parameter name="BloomHDRBlurSigma" value="2.0" />
  49. <texture unit="diffuse" name="bright8" />
  50. </command>
  51. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="COMBINE8" psdefines="COMBINE8" output="blur4">
  52. <texture unit="diffuse" name="bright4" />
  53. <texture unit="normal" name="blur8" />
  54. </command>
  55. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="BLUR4" psdefines="BLUR4" output="bright4">
  56. <parameter name="BloomHDRBlurDir" value="1.0 0.0" />
  57. <parameter name="BloomHDRBlurRadius" value="1.0" />
  58. <parameter name="BloomHDRBlurSigma" value="2.0" />
  59. <texture unit="diffuse" name="blur4" />
  60. </command>
  61. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="BLUR4" psdefines="BLUR4" output="blur4">
  62. <parameter name="BloomHDRBlurDir" value="0.0 1.0" />
  63. <parameter name="BloomHDRBlurRadius" value="1.0" />
  64. <parameter name="BloomHDRBlurSigma" value="2.0" />
  65. <texture unit="diffuse" name="bright4" />
  66. </command>
  67. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="COMBINE4" psdefines="COMBINE4" output="blur2">
  68. <texture unit="diffuse" name="bright2" />
  69. <texture unit="normal" name="blur4" />
  70. </command>
  71. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="BLUR2" psdefines="BLUR2" output="bright2">
  72. <parameter name="BloomHDRBlurDir" value="1.0 0.0" />
  73. <parameter name="BloomHDRBlurRadius" value="1.0" />
  74. <parameter name="BloomHDRBlurSigma" value="2.0" />
  75. <texture unit="diffuse" name="blur2" />
  76. </command>
  77. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="BLUR2" psdefines="BLUR2" output="blur2">
  78. <parameter name="BloomHDRBlurDir" value="0.0 1.0" />
  79. <parameter name="BloomHDRBlurRadius" value="1.0" />
  80. <parameter name="BloomHDRBlurSigma" value="2.0" />
  81. <texture unit="diffuse" name="bright2" />
  82. </command>
  83. <command type="quad" tag="BloomHDR" vs="BloomHDR" ps="BloomHDR" vsdefines="COMBINE2" psdefines="COMBINE2" output="viewport">
  84. <parameter name="BloomHDRMix" value="1.0 0.4" />
  85. <texture unit="diffuse" name="viewport" />
  86. <texture unit="normal" name="blur2" />
  87. </command>
  88. </renderpath>