Urho3D/bin/Data/PostProcess/AutoExposure.xml
2020-02-25 01:33:06 +02:00

39 lines
2.6 KiB
XML

<renderpath>
<rendertarget name="HDR128" tag="AutoExposure" size="128 128" format="rgba16f" filter="true" />
<rendertarget name="Lum64" tag="AutoExposure" size="64 64" format="rg16f" filter="true" />
<rendertarget name="Lum16" tag="AutoExposure" size="16 16" format="rg16f" filter="true" />
<rendertarget name="Lum4" tag="AutoExposure" size="4 4" format="rg16f" filter="true" />
<rendertarget name="Lum1" tag="AutoExposure" size="1 1" format="rg16f" filter="false" />
<rendertarget name="AdaptedLum" tag="AutoExposure" size="1 1" format="rg16f" filter="false" persistent="true" />
<rendertarget name="PrevAdaptedLum" tag="AutoExposure" size="1 1" format="rg16f" filter="false" />
<command type="quad" tag="AutoExposure" vs="CopyFramebuffer" ps="CopyFramebuffer" output="HDR128">
<texture unit="diffuse" name="viewport" />
</command>
<command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="LUMINANCE64" psdefines="LUMINANCE64" output="Lum64">
<texture unit="diffuse" name="HDR128" />
</command>
<command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="LUMINANCE16" psdefines="LUMINANCE16" output="Lum16">
<texture unit="diffuse" name="Lum64" />
</command>
<command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="LUMINANCE4" psdefines="LUMINANCE4" output="Lum4">
<texture unit="diffuse" name="Lum16" />
</command>
<command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="LUMINANCE1" psdefines="LUMINANCE1" output="Lum1">
<texture unit="diffuse" name="Lum4" />
</command>
<command type="quad" tag="AutoExposure" vs="CopyFramebuffer" ps="CopyFramebuffer" output="PrevAdaptedLum">
<texture unit="diffuse" name="AdaptedLum" />
</command>
<command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="ADAPTLUMINANCE" psdefines="ADAPTLUMINANCE" output="AdaptedLum">
<parameter name="AutoExposureAdaptRate" value="0.6" />
<parameter name="AutoExposureLumRange" value="0.01 1.0" />
<texture unit="diffuse" name="PrevAdaptedLum" />
<texture unit="normal" name="Lum1" />
</command>
<command type="quad" tag="AutoExposure" vs="AutoExposure" ps="AutoExposure" vsdefines="EXPOSE" psdefines="EXPOSE" output="viewport">
<parameter name="AutoExposureMiddleGrey" value="0.6" />
<texture unit="diffuse" name="viewport" />
<texture unit="normal" name="AdaptedLum" />
</command>
</renderpath>