Prepass.xml 1.3 KB

123456789101112131415161718192021222324252627
  1. <renderpath>
  2. <rendertarget name="light" 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="prepass" marktostencil="true" metadata="gbuffer">
  8. <output index="0" name="normal" />
  9. <output index="1" name="depth" />
  10. </command>
  11. <command type="clear" color="0 0 0 0" output="light" />
  12. <command type="lightvolumes" vs="PrepassLight" ps="PrepassLight" output="light">
  13. <texture unit="normal" name="normal" />
  14. <texture unit="depth" name="depth" />
  15. </command>
  16. <command type="scenepass" pass="material" vertexlights="true">
  17. <texture unit="light" name="light" />
  18. </command>
  19. <command type="scenepass" pass="postopaque" />
  20. <command type="scenepass" pass="refract">
  21. <texture unit="environment" name="viewport" />
  22. </command>
  23. <command type="scenepass" pass="alpha" vertexlights="true" sort="backtofront" metadata="alpha">
  24. <texture unit="depth" name="depth" />
  25. </command>
  26. <command type="scenepass" pass="postalpha" sort="backtofront" />
  27. </renderpath>