AutoExposure.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <renderpath>
  2. <rendertarget name="HDR128" tag="AutoExposure" size="128 128" format="rgba16f" filter="true" />
  3. <rendertarget name="Lum64" tag="AutoExposure" size="64 64" format="rg16f" filter="true" />
  4. <rendertarget name="Lum16" tag="AutoExposure" size="16 16" format="rg16f" filter="true" />
  5. <rendertarget name="Lum4" tag="AutoExposure" size="4 4" format="rg16f" filter="true" />
  6. <rendertarget name="Lum1" tag="AutoExposure" size="1 1" format="rg16f" filter="false" />
  7. <rendertarget name="AdaptedLum" tag="AutoExposure" size="1 1" format="rg16f" filter="false" persistent="true" />
  8. <rendertarget name="PrevAdaptedLum" tag="AutoExposure" size="1 1" format="rg16f" filter="false" />
  9. <command type="quad" tag="AutoExposure" vs="CopyFramebuffer" ps="CopyFramebuffer" output="HDR128">
  10. <texture unit="diffuse" name="viewport" />
  11. </command>
  12. <command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="LUMINANCE64" psdefines="LUMINANCE64" output="Lum64">
  13. <texture unit="diffuse" name="HDR128" />
  14. </command>
  15. <command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="LUMINANCE16" psdefines="LUMINANCE16" output="Lum16">
  16. <texture unit="diffuse" name="Lum64" />
  17. </command>
  18. <command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="LUMINANCE4" psdefines="LUMINANCE4" output="Lum4">
  19. <texture unit="diffuse" name="Lum16" />
  20. </command>
  21. <command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="LUMINANCE1" psdefines="LUMINANCE1" output="Lum1">
  22. <texture unit="diffuse" name="Lum4" />
  23. </command>
  24. <command type="quad" tag="AutoExposure" vs="CopyFramebuffer" ps="CopyFramebuffer" output="PrevAdaptedLum">
  25. <texture unit="diffuse" name="AdaptedLum" />
  26. </command>
  27. <command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="ADAPTLUMINANCE" psdefines="ADAPTLUMINANCE" output="AdaptedLum">
  28. <parameter name="AutoExposureAdaptRate" value="0.6" />
  29. <parameter name="AutoExposureLumRange" value="0.01 1.0" />
  30. <texture unit="diffuse" name="PrevAdaptedLum" />
  31. <texture unit="normal" name="Lum1" />
  32. </command>
  33. <command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="EXPOSE" psdefines="EXPOSE" output="viewport">
  34. <parameter name="AutoExposureMiddleGrey" value="0.6" />
  35. <texture unit="diffuse" name="viewport" />
  36. <texture unit="normal" name="AdaptedLum" />
  37. </command>
  38. </renderpath>