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;
|
|
|
|
|
2017-10-04 11:20:27 +02:00
|
|
|
T_CombinePass( __rw__ T_Texture& image ,
|
2017-10-01 18:51:02 +02:00
|
|
|
__rw__ T_Texture& bloom );
|
|
|
|
|
|
|
|
void render( );
|
|
|
|
void makeUI( );
|
|
|
|
|
|
|
|
private:
|
|
|
|
T_Texture& txImage_;
|
|
|
|
T_Texture& txBloom_;
|
|
|
|
|
|
|
|
T_ShaderProgram program_;
|
|
|
|
|
|
|
|
float bloomStrength_;
|
|
|
|
float bloomAttenuation_;
|
|
|
|
};
|
|
|
|
|