Ms.h 729 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef ANKI_RENDERER_MS_H
  2. #define ANKI_RENDERER_MS_H
  3. #include "anki/renderer/RenderingPass.h"
  4. #include "anki/gl/Texture.h"
  5. #include "anki/gl/Fbo.h"
  6. #include "anki/renderer/Ez.h"
  7. namespace anki {
  8. /// Material stage
  9. class Ms: public RenderingPass
  10. {
  11. public:
  12. Ms(Renderer* r_)
  13. : RenderingPass(r_), ez(r_)
  14. {}
  15. ~Ms();
  16. /// @name Accessors
  17. /// @{
  18. const Texture& getFai0() const
  19. {
  20. return fai0;
  21. }
  22. const Texture& getDepthFai() const
  23. {
  24. return depthFai;
  25. }
  26. /// @}
  27. void init(const RendererInitializer& initializer);
  28. void run();
  29. private:
  30. Ez ez; /// EarlyZ pass
  31. Fbo fbo;
  32. Texture fai0; ///< The FAI for diffuse color, normals and specular
  33. Texture depthFai; ///< The FAI for depth
  34. };
  35. } // end namespace anki
  36. #endif