DeferredHWDepth.xml 1.4 KB

12345678910111213141516171819202122232425
  1. <renderpath>
  2. <rendertarget name="albedo" sizedivisor="1 1" format="rgba" />
  3. <rendertarget name="normal" sizedivisor="1 1" format="rgba" />
  4. <rendertarget name="depth" sizedivisor="1 1" format="readabledepth" persistent="true" />
  5. <command type="clear" color="fog" depth="1.0" stencil="0" depthstencil="depth" />
  6. <command type="clear" color="0 0 0 0" output="albedo" depthstencil="depth" />
  7. <command type="scenepass" pass="deferred" marktostencil="true" vertexlights="true" metadata="gbuffer" depthstencil="depth">
  8. <output index="0" name="viewport" />
  9. <output index="1" name="albedo" />
  10. <output index="2" name="normal" />
  11. </command>
  12. <command type="lightvolumes" vs="DeferredLight" ps="DeferredLight" psdefines="HWDEPTH" depthstencil="depth">
  13. <texture unit="albedo" name="albedo" />
  14. <texture unit="normal" name="normal" />
  15. <texture unit="depth" name="depth" />
  16. </command>
  17. <command type="scenepass" pass="postopaque" depthstencil="depth" />
  18. <command type="scenepass" pass="refract" depthstencil="depth">
  19. <texture unit="environment" name="viewport" />
  20. </command>
  21. <command type="scenepass" pass="alpha" vertexlights="true" sort="backtofront" metadata="alpha" depthstencil="depth" psdefines="HWDEPTH">
  22. <texture unit="depth" name="depth" />
  23. </command>
  24. <command type="scenepass" pass="postalpha" sort="backtofront" depthstencil="depth" />
  25. </renderpath>