AutoExposure.xml 2.4 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" />
  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_Luminance64" ps="AutoExposure_Luminance64" output="lum64">
  13. <texture unit="diffuse" name="hdr128" />
  14. </command>
  15. <command type="quad" tag="AutoExposure" vs="AutoExposure_Luminance16" ps="AutoExposure_Luminance16" output="lum16">
  16. <texture unit="diffuse" name="lum64" />
  17. </command>
  18. <command type="quad" tag="AutoExposure" vs="AutoExposure_Luminance4" ps="AutoExposure_Luminance4" output="lum4">
  19. <texture unit="diffuse" name="lum16" />
  20. </command>
  21. <command type="quad" tag="AutoExposure" vs="AutoExposure_Luminance1" ps="AutoExposure_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_AdaptLuminance" ps="AutoExposure_AdaptLuminance" output="adaptedLum">
  28. <parameter name="AutoExposureAdaptRate" value="0.6" />
  29. <texture unit="diffuse" name="prevAdaptedLum" />
  30. <texture unit="normal" name="lum1" />
  31. </command>
  32. <command type="quad" tag="AutoExposure" vs="AutoExposure_Expose" ps="AutoExposure_Expose" output="viewport">
  33. <parameter name="AutoExposureMiddleGrey" value="0.8" />
  34. <parameter name="AutoExposureSensitivity" value="1.2" />
  35. <texture unit="diffuse" name="viewport" />
  36. <texture unit="normal" name="adaptedLum" />
  37. </command>
  38. </renderpath>