townforge/GameData/PostProcess/SSAO.xml
2022-03-25 16:26:33 +00:00

26 lines
1.4 KiB
XML
Executable File

<renderpath>
<rendertarget name="SSAO" tag="SSAO" sizedivisor="1 1" format="rgb" filter="true" />
<rendertarget name="BlurH" tag="SSAO" sizedivisor="1 1" format="rgb" filter="true" />
<rendertarget name="BlurV" tag="SSAO" sizedivisor="1 1" format="rgb" filter="true" />
<command type="quad" tag="SSAO" vs="SSAO" ps="SSAO" psdefines="OCCLUDE" output="SSAO">
<texture unit="diffuse" name="Textures/PostProcess/Noise.png" />
<texture unit="specular" name="position" />
<texture unit="depth" name="depth" />
<parameter name="SSAOStrength" value="1.0" />
<parameter name="SSAORadius" value="1.0" />
<parameter name="SSAOBase" value=".0" />
<parameter name="SSAOArea" value="10.0" />
<parameter name="SSAOFalloff" value="0.001" />
<parameter name="SSAONoiseFactor" value="16.0" />
</command>
<command type="quad" tag="SSAO" vs="SSAO" ps="SSAO" psdefines="BLURH" output="BlurH">
<texture unit="diffuse" name="SSAO"/>
</command>
<command type="quad" tag="SSAO" vs="SSAO" ps="SSAO" psdefines="BLURV" output="BlurV">
<texture unit="diffuse" name="BlurH"/>
</command>
<command type="quad" tag="SSAO" vs="SSAO" ps="SSAO" psdefines="OUTPUT" output="viewport">
<texture unit="diffuse" name="viewport" />
<texture unit="depth" name="BlurV" />
</command>
</renderpath>