townforge/GameData/PostProcess/TF_Bloom.xml
2022-03-25 18:54:54 +00:00

20 lines
1001 B
XML

<renderpath>
<rendertarget name="BlurV" tag="Bloom" sizedivisor="1 1" format="rgb" filter="true" />
<rendertarget name="BlurH" tag="Bloom" sizedivisor="1 1" format="rgb" filter="true" />
<command type="quad" tag="Bloom" vs="Bloom" ps="Bloom" psdefines="BRIGHT" output="BlurV">
<parameter name="BloomThreshold" value="0.5" />
<texture unit="diffuse" name="viewport" />
</command>
<command type="quad" tag="Bloom" vs="Bloom" ps="Bloom" psdefines="BLURH" output="BlurH">
<texture unit="diffuse" name="BlurV" />
</command>
<command type="quad" tag="Bloom" vs="Bloom" ps="Bloom" psdefines="BLURV" output="BlurV">
<texture unit="diffuse" name="BlurH" />
</command>
<command type="quad" tag="Bloom" vs="Bloom" ps="Bloom" psdefines="COMBINE" output="viewport">
<parameter name="BloomMix" value="1.0 .5" />
<texture unit="diffuse" name="viewport" />
<texture unit="normal" name="BlurV" />
</command>
</renderpath>