Deferred.xml 1.0 KB

1234567891011121314151617181920
  1. <renderpath>
  2. <rendertarget name="albedo" rtsizedivisor="1 1" format="rgba" />
  3. <rendertarget name="normal" rtsizedivisor="1 1" format="rgba" />
  4. <rendertarget name="depth" rtsizedivisor="1 1" format="lineardepth" />
  5. <command type="clear" color="fog" depth="1.0" stencil="0" />
  6. <command type="scenepass" pass="deferred" marktostencil="true" vertexlights="true">
  7. <output index="0" name="viewport" />
  8. <output index="1" name="albedo" />
  9. <output index="2" name="normal" />
  10. <output index="3" name="depth" />
  11. </command>
  12. <command type="lightvolumes" vs="DeferredLight" ps="DeferredLight">
  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="prealpha" />
  18. <command type="scenepass" pass="alpha" usescissor="true" vertexlights="true" sort="backtofront" />
  19. <command type="scenepass" pass="postalpha" sort="backtofront" />
  20. </renderpath>