demotool/combine.hh

31 lines
482 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;
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_;
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-01 18:51:02 +02:00
};