MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / DoFullscreenPostprocess

Method DoFullscreenPostprocess

PanzerChasm/client/map_drawer_gl.cpp:611–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609}
610
611void MapDrawerGL::DoFullscreenPostprocess( const MapState& map_state )
612{
613 m_Vec3 blend_color;
614 float blend_alpha;
615 map_state.GetFullscreenBlend( blend_color, blend_alpha );
616 if( blend_alpha > 0.001f )
617 {
618 r_OGLStateManager::UpdateState( g_fullscreen_blend_state );
619 fullscreen_blend_shader_.Bind();
620 fullscreen_blend_shader_.Uniform( "blend_color", blend_color.x, blend_color.y, blend_color.z, blend_alpha );
621 glDrawArrays( GL_TRIANGLES, 0, 6 );
622 }
623
624}
625
626void MapDrawerGL::DrawMapRelatedModels(
627 const MapRelatedModel* const models, const unsigned int model_count,

Callers 1

DrawMethod · 0.45

Calls 2

GetFullscreenBlendMethod · 0.80
BindMethod · 0.80

Tested by

no test coverage detected