Deferred.xml 1.3 KB

1234567891011121314151617181920212223242526
  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="lineardepth" />
  5. <command type="clear" color="1 1 1 1" output="depth" />
  6. <command type="clear" color="fog" depth="1.0" stencil="0" />
  7. <command type="scenepass" pass="deferred" marktostencil="true" vertexlights="true" metadata="gbuffer">
  8. <output index="0" name="viewport" />
  9. <output index="1" name="albedo" />
  10. <output index="2" name="normal" />
  11. <output index="3" name="depth" />
  12. </command>
  13. <command type="lightvolumes" vs="DeferredLight" ps="DeferredLight">
  14. <texture unit="albedo" name="albedo" />
  15. <texture unit="normal" name="normal" />
  16. <texture unit="depth" name="depth" />
  17. </command>
  18. <command type="scenepass" pass="postopaque" />
  19. <command type="scenepass" pass="refract">
  20. <texture unit="environment" name="viewport" />
  21. </command>
  22. <command type="scenepass" pass="alpha" vertexlights="true" sort="backtofront" metadata="alpha">
  23. <texture unit="depth" name="depth" />
  24. </command>
  25. <command type="scenepass" pass="postalpha" sort="backtofront" />
  26. </renderpath>