- Enabled gl_line_distance_cull and added slider to menu.

This commit is contained in:
drfrag 2019-09-04 17:13:11 +02:00
parent 2b27cb0bba
commit d47af90a56
2 changed files with 3 additions and 1 deletions

View file

@ -77,7 +77,7 @@ void GLSceneDrawer::UnclipSubsector(subsector_t *sub)
//
//==========================================================================
CVAR(Float, gl_line_distance_cull, 0.0, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
CVAR(Float, gl_line_distance_cull, 8000.0, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
inline bool IsDistanceCulled(seg_t *line)
{

View file

@ -2595,6 +2595,8 @@ OptionMenu "OpenGLOptions" protected
Option "$GLPREFMNU_PARTICLESTYLE", gl_particles_style, "Particles"
Option "$GLPREFMNU_RENDERQUALITY", gl_render_precise, "Precision"
StaticText " "
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
StaticText " "
Option "$GLPREFMNU_MULTISAMPLE", gl_multisample, "Multisample"