|
|
@@ -0,0 +1,33 @@
|
|
|
+// Copyright (C) 2009-2015, Panagiotis Christopoulos Charitos.
|
|
|
+// All rights reserved.
|
|
|
+// Code licensed under the BSD License.
|
|
|
+// http://www.anki3d.org/LICENSE
|
|
|
+
|
|
|
+#ifndef ANKI_RENDERER_TM_H
|
|
|
+#define ANKI_RENDERER_TM_H
|
|
|
+
|
|
|
+#include "anki/renderer/RenderingPass.h"
|
|
|
+
|
|
|
+namespace anki {
|
|
|
+
|
|
|
+/// @addtogroup renderer
|
|
|
+/// @{
|
|
|
+
|
|
|
+/// Tonemapping.
|
|
|
+class Tm: private RenderingPass
|
|
|
+{
|
|
|
+public:
|
|
|
+ Tm(Renderer* r)
|
|
|
+ : RenderingPass(r)
|
|
|
+ {}
|
|
|
+
|
|
|
+ ANKI_USE_RESULT Error init(const ConfigSet& initializer);
|
|
|
+
|
|
|
+private:
|
|
|
+ BufferHandle m_luminanceBuff;
|
|
|
+ ShaderResourcePointer m_avgLuminanceShader;
|
|
|
+};
|
|
|
+
|
|
|
+} // end namespace anki
|
|
|
+
|
|
|
+#endif
|