Urho3D/bin/CoreData/RenderPaths/Prepass.xml

28 lines
1.3 KiB
XML

<renderpath>
<rendertarget name="light" sizedivisor="1 1" format="rgba" />
<rendertarget name="normal" sizedivisor="1 1" format="rgba" />
<rendertarget name="depth" sizedivisor="1 1" format="lineardepth" />
<command type="clear" color="1 1 1 1" output="depth" />
<command type="clear" color="fog" depth="1.0" stencil="0" />
<command type="scenepass" pass="prepass" marktostencil="true" metadata="gbuffer">
<output index="0" name="normal" />
<output index="1" name="depth" />
</command>
<command type="clear" color="0 0 0 0" output="light" />
<command type="lightvolumes" vs="PrepassLight" ps="PrepassLight" output="light">
<texture unit="normal" name="normal" />
<texture unit="depth" name="depth" />
</command>
<command type="scenepass" pass="material" vertexlights="true">
<texture unit="light" name="light" />
</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>