PrepassHWDepth.xml 1.4 KB

1234567891011121314151617181920212223
  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="readabledepth" />
  5. <command type="clear" color="fog" depth="1.0" stencil="0" depthstencil="depth" />
  6. <command type="scenepass" pass="prepass" marktostencil="true" metadata="gbuffer" output="normal" depthstencil="depth" />
  7. <command type="clear" color="0 0 0 0" output="light" depthstencil="depth" />
  8. <command type="lightvolumes" vs="PrepassLight" ps="PrepassLight" psdefines="HWDEPTH" output="light" depthstencil="depth" >
  9. <texture unit="normal" name="normal" />
  10. <texture unit="depth" name="depth" />
  11. </command>
  12. <command type="scenepass" pass="material" vertexlights="true" depthstencil="depth">
  13. <texture unit="light" name="light" />
  14. </command>
  15. <command type="scenepass" pass="postopaque" depthstencil="depth" />
  16. <command type="scenepass" pass="refract" depthstencil="depth">
  17. <texture unit="environment" name="viewport" />
  18. </command>
  19. <command type="scenepass" pass="alpha" vertexlights="true" sort="backtofront" metadata="alpha" depthstencil="depth" psdefines="HWDEPTH">
  20. <texture unit="depth" name="depth" />
  21. </command>
  22. <command type="scenepass" pass="postalpha" sort="backtofront" depthstencil="depth" />
  23. </renderpath>