demotool/combine.hh

29 lines
494 B
C++

#pragma once
#include "rendertarget.hh"
#include "programs.hh"
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_;
};