Urho3D/bin/CoreData/RenderPaths/PBRDeferred.xml

33 lines
1.7 KiB
XML

<renderpath>
<rendertarget name="specular" sizedivisor="1 1" format="rgba16f" />
<rendertarget name="albedo" sizedivisor="1 1" format="rgba16f" />
<rendertarget name="normal" sizedivisor="1 1" format="rgba16f" />
<rendertarget name="depth" sizedivisor="1 1" format="lineardepth" />
<command type="clear" color="0 0 0 0" depth="1.0" stencil="0" />
<command type="clear" color="0 0 0 0" output="albedo" />
<command type="clear" color="0 0 0 0" output="specular" />
<command type="clear" color="0 0 0 0" output="normal" />
<command type="clear" color="0 0 0 0" depth="1.0" output="depth" />
<command type="scenepass" pass="base" vertexlights="true" metadata="base" />
<command type="scenepass" pass="deferred" marktostencil="true" vertexlights="true" metadata="gbuffer">
<output index="0" name="specular" />
<output index="1" name="albedo" />
<output index="2" name="normal" />
<output index="3" name="depth" />
</command>
<command type="lightvolumes" vs="PBRDeferred" ps="PBRDeferred" psdefines="PBRDEFERRED PBR" vsdefines="PBR" output="viewport">
<texture unit="specular" name="specular" />
<texture unit="albedo" name="albedo" />
<texture unit="normal" name="normal" />
<texture unit="depth" name="depth" />
</command>
<command type="scenepass" pass="postopaque" />
<command type="scenepass" pass="refract">
<texture unit="environment" name="viewport" />
</command>
<command type="scenepass" pass="alpha" vertexlights="true" sort="backtofront" metadata="alpha">
<texture unit="depth" name="depth" />
</command>
<command type="scenepass" pass="postalpha" sort="backtofront" />
</renderpath>