MCPcopy Create free account
hub / github.com/carbonengine/trinity / ApplyFade

Function ApplyFade

trinity/PostProcess/Tr2PostProcessRenderer.cpp:402–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402void ApplyFade( const Tr2PPFadeEffect* fade, Tr2Effect* tonemappingEffect )
403{
404 if( fade != nullptr )
405 {
406 tonemappingEffect->SetParameter( MEMOIZED_STRING( "FadeColor" ), Vector4( fade->m_color ) );
407 tonemappingEffect->SetParameter( MEMOIZED_STRING( "FadeAmount" ), fade->m_intensity );
408 }
409 else
410 {
411 tonemappingEffect->SetParameter( MEMOIZED_STRING( "FadeAmount" ), 0.0f );
412 }
413}
414
415void ApplyLuts( std::vector<const Tr2PPLutEffect*>& luts, Tr2Effect* tonemappingEffect )
416{

Callers 1

RenderTonemappingMethod · 0.85

Calls 2

Vector4Class · 0.50
SetParameterMethod · 0.45

Tested by

no test coverage detected