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>