| 609 | } |
| 610 | |
| 611 | void 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 | |
| 626 | void MapDrawerGL::DrawMapRelatedModels( |
| 627 | const MapRelatedModel* const models, const unsigned int model_count, |
no test coverage detected