demotool/combine.hh

41 lines
630 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"
2017-10-04 18:06:39 +02:00
#include "shaders.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-11-03 11:55:26 +01:00
T_CombinePass( T_Texture& image ,
T_Texture& bloom );
2017-10-01 18:51:02 +02:00
void render( );
void makeUI( );
2017-10-05 18:35:35 +02:00
T_Texture& output( )
{ return txOutput_; }
2017-10-01 18:51:02 +02:00
private:
T_Texture& txImage_;
T_Texture& txBloom_;
2017-10-05 18:35:35 +02:00
T_Texture txOutput_;
T_Rendertarget rtOutput_;
2017-10-04 18:06:39 +02:00
T_ShaderPipeline program_;
2017-10-01 18:51:02 +02:00
float bloomStrength_;
float bloomAttenuation_;
2017-10-05 10:09:34 +02:00
float vignette_[ 6 ];
2017-10-05 12:56:52 +02:00
float cgLift_[ 3 ];
float cgGain_[ 3 ];
float cgGamma_[ 3 ];
2017-10-01 18:51:02 +02:00
};