BloomHDR.xml 5.4 KB

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