GBufferPost.h 607 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <AnKi/Renderer/RendererObject.h>
  7. namespace anki {
  8. /// @addtogroup renderer
  9. /// @{
  10. /// Applies decals to the GBuffer. It's a seperate pass because it requres the depth buffer.
  11. class GBufferPost : public RendererObject
  12. {
  13. public:
  14. Error init();
  15. void populateRenderGraph(RenderingContext& ctx);
  16. private:
  17. ShaderProgramResourcePtr m_prog;
  18. ShaderProgramPtr m_grProg;
  19. };
  20. /// @}
  21. } // end namespace anki