Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
DeferredFXAAPass.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_DEFERREDFXAAPASS_HPP
8 #define NAZARA_DEFERREDFXAAPASS_HPP
9 
10 #include <Nazara/Prerequesites.hpp>
11 #include <Nazara/Graphics/DeferredRenderPass.hpp>
12 #include <Nazara/Renderer/RenderStates.hpp>
13 #include <Nazara/Renderer/Shader.hpp>
14 #include <Nazara/Renderer/TextureSampler.hpp>
15 
16 namespace Nz
17 {
18  class NAZARA_GRAPHICS_API DeferredFXAAPass : public DeferredRenderPass
19  {
20  public:
22  virtual ~DeferredFXAAPass();
23 
24  bool Process(const SceneData& sceneData, unsigned int firstWorkTexture, unsigned int secondWorkTexture) const override;
25 
26  protected:
27  RenderStates m_states;
28  ShaderRef m_fxaaShader;
29  TextureSampler m_pointSampler;
30  };
31 }
32 
33 #endif // NAZARA_DEFERREDFXAAPASS_HPP
TODO: Inherit SoundEmitter from Node.
Definition: Algorithm.hpp:12
Graphics class that represents the pass for FXAA in deferred rendering.
Definition: DeferredFXAAPass.hpp:18
Graphics class that represents the pass for rendering in deferred rendering.
Definition: DeferredRenderPass.hpp:22