Nazara Engine  0.4
A fast, complete, cross-platform API designed for game development
DeferredFogPass.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_DEFERREDFOGPASS_HPP
8 #define NAZARA_DEFERREDFOGPASS_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 DeferredFogPass : public DeferredRenderPass
19  {
20  public:
22  virtual ~DeferredFogPass();
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_shader;
29  TextureSampler m_pointSampler;
30  int m_shaderEyePositionLocation;
31  };
32 }
33 
34 #endif // NAZARA_DEFERREDFOGPASS_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 pass for fog in deferred rendering.
Definition: DeferredFogPass.hpp:18