PBRDeferred.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. <renderpath>
  2. <rendertarget name="specular" sizedivisor="1 1" format="rgba16f" />
  3. <rendertarget name="albedo" sizedivisor="1 1" format="rgba16f" />
  4. <rendertarget name="normal" sizedivisor="1 1" format="rgba16f" />
  5. <rendertarget name="depth" sizedivisor="1 1" format="lineardepth" />
  6. <command type="clear" color="0 0 0 0" depth="1.0" stencil="0" />
  7. <command type="clear" color="0 0 0 0" output="albedo" />
  8. <command type="clear" color="0 0 0 0" output="specular" />
  9. <command type="clear" color="0 0 0 0" output="normal" />
  10. <command type="clear" color="0 0 0 0" depth="1.0" output="depth" />
  11. <command type="scenepass" pass="base" vertexlights="true" metadata="base" />
  12. <command type="scenepass" pass="deferred" marktostencil="true" vertexlights="true" metadata="gbuffer">
  13. <output index="0" name="specular" />
  14. <output index="1" name="albedo" />
  15. <output index="2" name="normal" />
  16. <output index="3" name="depth" />
  17. </command>
  18. <command type="lightvolumes" vs="PBRDeferred" ps="PBRDeferred" psdefines="PBRDEFERRED PBR" vsdefines="PBR" output="viewport">
  19. <texture unit="specular" name="specular" />
  20. <texture unit="albedo" name="albedo" />
  21. <texture unit="normal" name="normal" />
  22. <texture unit="depth" name="depth" />
  23. </command>
  24. <command type="scenepass" pass="postopaque" />
  25. <command type="scenepass" pass="refract">
  26. <texture unit="environment" name="viewport" />
  27. </command>
  28. <command type="scenepass" pass="alpha" vertexlights="true" sort="backtofront" metadata="alpha">
  29. <texture unit="depth" name="depth" />
  30. </command>
  31. <command type="scenepass" pass="postalpha" sort="backtofront" />
  32. </renderpath>