Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
DeferredFinalPass.hpp
1 // Copyright (C) 2017 Jérôme Leclercq
2 // This file is part of the "Nazara Engine - Graphics module"
3 // For conditions of distribution and use, see copyright notice in Config.hpp
4 
5 #pragma once
6 
7 #ifndef NAZARA_DEFERREDFINALPASS_HPP
8 #define NAZARA_DEFERREDFINALPASS_HPP
9 
10 #include <Nazara/Prerequesites.hpp>
11 #include <Nazara/Graphics/DeferredRenderPass.hpp>
12 #include <Nazara/Renderer/RenderStates.hpp>
13 #include <Nazara/Renderer/TextureSampler.hpp>
14 #include <Nazara/Renderer/UberShader.hpp>
15 
16 namespace Nz
17 {
18  class NAZARA_GRAPHICS_API DeferredFinalPass : public DeferredRenderPass
19  {
20  public:
22  virtual ~DeferredFinalPass();
23 
24  bool Process(const SceneData& sceneData, unsigned int firstWorkTexture, unsigned int secondWorkTexture) const override;
25 
26  protected:
27  RenderStates m_states;
28  TextureSampler m_pointSampler;
29  UberShaderConstRef m_uberShader;
30  const UberShaderInstance* m_uberShaderInstance;
31  int m_materialDiffuseUniform;
32  int m_materialDiffuseMapUniform;
33  };
34 }
35 
36 #endif // NAZARA_DEFERREDFINALPASS_HPP
TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Graphics class that represents the pass for rendering in deferred rendering.
Definition: DeferredRenderPass.hpp:22
Graphics class that represents the final pass in deferred rendering.
Definition: DeferredFinalPass.hpp:18