26 lines
1.4 KiB
XML
26 lines
1.4 KiB
XML
<renderpath>
|
|
<rendertarget name="albedo" sizedivisor="1 1" format="rgba" />
|
|
<rendertarget name="normal" sizedivisor="1 1" format="rgba" />
|
|
<rendertarget name="depth" sizedivisor="1 1" format="readabledepth" persistent="true" />
|
|
<command type="clear" color="fog" depth="1.0" stencil="0" depthstencil="depth" />
|
|
<command type="clear" color="0 0 0 0" output="albedo" depthstencil="depth" />
|
|
<command type="scenepass" pass="deferred" marktostencil="true" vertexlights="true" metadata="gbuffer" depthstencil="depth">
|
|
<output index="0" name="viewport" />
|
|
<output index="1" name="albedo" />
|
|
<output index="2" name="normal" />
|
|
</command>
|
|
<command type="lightvolumes" vs="DeferredLight" ps="DeferredLight" psdefines="HWDEPTH" depthstencil="depth">
|
|
<texture unit="albedo" name="albedo" />
|
|
<texture unit="normal" name="normal" />
|
|
<texture unit="depth" name="depth" />
|
|
</command>
|
|
<command type="scenepass" pass="postopaque" depthstencil="depth" />
|
|
<command type="scenepass" pass="refract" depthstencil="depth">
|
|
<texture unit="environment" name="viewport" />
|
|
</command>
|
|
<command type="scenepass" pass="alpha" vertexlights="true" sort="backtofront" metadata="alpha" depthstencil="depth" psdefines="HWDEPTH">
|
|
<texture unit="depth" name="depth" />
|
|
</command>
|
|
<command type="scenepass" pass="postalpha" sort="backtofront" depthstencil="depth" />
|
|
</renderpath>
|