- Enabled gl_sprite_distance_cull and added slider to menu.

This commit is contained in:
drfrag 2019-09-04 22:31:56 +02:00
parent ba835a14a4
commit 6879817cd8
2 changed files with 2 additions and 1 deletions

View file

@ -682,7 +682,7 @@ void GLSprite::PerformSpriteClipAdjustment(AActor *thing, const DVector2 &thingp
//
//==========================================================================
CVAR(Float, gl_sprite_distance_cull, 0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
CVAR(Float, gl_sprite_distance_cull, 4000.0, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
inline bool IsDistanceCulled(AActor* thing)
{

View file

@ -2595,6 +2595,7 @@ OptionMenu "OpenGLOptions" protected
Option "$GLPREFMNU_PARTICLESTYLE", gl_particles_style, "Particles"
Option "$GLPREFMNU_RENDERQUALITY", gl_render_precise, "Precision"
StaticText " "
ScaleSlider "$DSPLYMNU_SPRITECULL", gl_sprite_distance_cull, 0.0, 8000.0, 500.0, "Disabled"
ScaleSlider "$DSPLYMNU_LINECULL", gl_line_distance_cull, 0.0, 16000.0, 1000.0, "Disabled"
StaticText " "
Slider "$GLPREFMNU_MENUBLUR", gl_menu_blur, 0, 5.0, 0.5, 2