2019-02-04 16:58:09 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
2020-03-30 16:43:25 +00:00
|
|
|
<!--
|
|
|
|
This Compositor pipeline imitates the classic forward pipeline used before
|
|
|
|
multi-pass rendering was introduced. It doesn't involve any FBOs and all the
|
|
|
|
rendering happens in two passes rendering directly to the screen.
|
|
|
|
|
|
|
|
The precision of the Z-buffer deteriorates with huge near-far spreads, so
|
|
|
|
two passes with different depth ranges are used to avoid Z-fighting and
|
|
|
|
other unpleasantness.
|
|
|
|
-->
|
2019-02-04 16:58:09 +00:00
|
|
|
<PropertyList>
|
|
|
|
<name>low-spec</name>
|
2020-03-30 16:43:25 +00:00
|
|
|
<pass n="0">
|
|
|
|
<name>far</name>
|
|
|
|
<type>scene</type>
|
|
|
|
<z-near>100.0</z-near>
|
|
|
|
</pass>
|
|
|
|
<pass n="1">
|
|
|
|
<name>near</name>
|
2019-02-04 16:58:09 +00:00
|
|
|
<type>scene</type>
|
2020-03-30 16:43:25 +00:00
|
|
|
<cull-mask>0xfff7ff</cull-mask> <!-- Cull the sky (bit 11 off) -->
|
|
|
|
<!-- Only clear the depth buffer so color information isn't overwritten -->
|
|
|
|
<clear-mask>depth</clear-mask>
|
|
|
|
<z-far>100.0</z-far>
|
2019-02-04 16:58:09 +00:00
|
|
|
</pass>
|
|
|
|
</PropertyList>
|