Prepass.xml 1.2 KB

123456789101112131415161718192021222324
  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="fog" depth="1.0" stencil="0" />
  6. <command type="scenepass" pass="prepass" marktostencil="true" metadata="gbuffer">
  7. <output index="0" name="normal" />
  8. <output index="1" name="depth" />
  9. </command>
  10. <command type="clear" color="0 0 0 0" output="light" />
  11. <command type="lightvolumes" vs="PrepassLight" ps="PrepassLight" output="light">
  12. <texture unit="normal" name="normal" />
  13. <texture unit="depth" name="depth" />
  14. </command>
  15. <command type="scenepass" pass="material" vertexlights="true">
  16. <texture unit="light" name="light" />
  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. <command type="scenepass" pass="postalpha" sort="backtofront" />
  24. </renderpath>