demotool/combine.hh

30 lines
494 B
C++
Raw Normal View History

2017-10-01 18:51:02 +02:00
#pragma once
2017-10-02 09:40:36 +02:00
#include "rendertarget.hh"
#include "programs.hh"
2017-10-01 18:51:02 +02:00
struct T_CombinePass
{
T_CombinePass( ) = delete;
T_CombinePass( T_CombinePass const& ) = delete;
T_CombinePass( T_CombinePass&& ) = delete;
T_CombinePass( __rw__ T_FilesWatcher& watcher ,
__rw__ T_Texture& image ,
__rw__ T_Texture& bloom );
void render( );
void makeUI( );
private:
T_Texture& txImage_;
T_Texture& txBloom_;
T_ShaderProgram program_;
float bloomStrength_;
float bloomAttenuation_;
};