r_skipBloom CVar

This commit is contained in:
Admer 2021-06-23 23:26:41 +02:00 committed by Robert Beckebans
parent ddb2fcd884
commit a1e1bec54a
3 changed files with 8 additions and 4 deletions

View file

@ -4887,7 +4887,6 @@ void idRenderBackend::Bloom( const viewDef_t* _viewDef )
// Draw
DrawElementsWithCounters( &unitSquareSurface );
// BLOOM PING PONG rendering
renderProgManager.BindShader_HDRGlareChromatic();
@ -5910,7 +5909,10 @@ void idRenderBackend::DrawViewInternal( const viewDef_t* _viewDef, const int ste
Tonemap( _viewDef );
}
Bloom( _viewDef );
if ( !r_skipBloom.GetBool() )
{
Bloom( _viewDef );
}
#endif
renderLog.CloseBlock();

View file

@ -1076,6 +1076,7 @@ extern idCVar r_useSeamlessCubeMap;
extern idCVar r_skipStaticInteractions; // skip interactions created at level load
extern idCVar r_skipDynamicInteractions; // skip interactions created after level load
extern idCVar r_skipPostProcess; // skip all post-process renderings
extern idCVar r_skipBloom; // Admer: skip bloom
extern idCVar r_skipSuppress; // ignore the per-view suppressions
extern idCVar r_skipInteractions; // skip all light/surface interaction drawing
extern idCVar r_skipFrontEnd; // bypasses all front end work, but 2D gui rendering still draws

View file

@ -119,10 +119,11 @@ idCVar r_skipStaticInteractions( "r_skipStaticInteractions", "0", CVAR_RENDERER
idCVar r_skipDynamicInteractions( "r_skipDynamicInteractions", "0", CVAR_RENDERER | CVAR_BOOL, "skip interactions created after level load" );
idCVar r_skipSuppress( "r_skipSuppress", "0", CVAR_RENDERER | CVAR_BOOL, "ignore the per-view suppressions" );
#if defined( USE_VULKAN )
idCVar r_skipPostProcess( "r_skipPostProcess", "1", CVAR_RENDERER | CVAR_BOOL, "skip all post-process renderings" );
idCVar r_skipPostProcess( "r_skipPostProcess", "1", CVAR_RENDERER | CVAR_BOOL, "skip all post-process renderings except bloom" );
#else
idCVar r_skipPostProcess( "r_skipPostProcess", "0", CVAR_RENDERER | CVAR_BOOL, "skip all post-process renderings" );
idCVar r_skipPostProcess( "r_skipPostProcess", "0", CVAR_RENDERER | CVAR_BOOL, "skip all post-process renderings except bloom" );
#endif
idCVar r_skipBloom( "r_skipBloom", "0", CVAR_RENDERER | CVAR_BOOL, "Skip bloom" );
idCVar r_skipInteractions( "r_skipInteractions", "0", CVAR_RENDERER | CVAR_BOOL, "skip all light/surface interaction drawing" );
idCVar r_skipDynamicTextures( "r_skipDynamicTextures", "0", CVAR_RENDERER | CVAR_BOOL, "don't dynamically create textures" );
idCVar r_skipCopyTexture( "r_skipCopyTexture", "0", CVAR_RENDERER | CVAR_BOOL, "do all rendering, but don't actually copyTexSubImage2D" );