demotool/combine.hh
2017-10-05 10:09:34 +02:00

30 lines
482 B
C++

#pragma once
#include "rendertarget.hh"
#include "shaders.hh"
struct T_CombinePass
{
T_CombinePass( ) = delete;
T_CombinePass( T_CombinePass const& ) = delete;
T_CombinePass( T_CombinePass&& ) = delete;
T_CombinePass( __rw__ T_Texture& image ,
__rw__ T_Texture& bloom );
void render( );
void makeUI( );
private:
T_Texture& txImage_;
T_Texture& txBloom_;
T_ShaderPipeline program_;
float bloomStrength_;
float bloomAttenuation_;
float vignette_[ 6 ];
};