2
0

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>