| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <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>
|