mirror of
https://github.com/DrBeef/QuestZDoom.git
synced 2025-03-04 08:31:49 +00:00
remove plane reflections
This commit is contained in:
parent
21d987e8ab
commit
7187af4df9
7 changed files with 13 additions and 2 deletions
|
@ -45,7 +45,9 @@ CUSTOM_CVAR(Int, r_mirror_recursions,2,CVAR_GLOBALCONFIG|CVAR_ARCHIVE)
|
|||
if (self>10) self=10;
|
||||
}
|
||||
bool gl_plane_reflection_i; // This is needed in a header that cannot include the CVAR stuff...
|
||||
CUSTOM_CVAR(Bool, gl_plane_reflection, true, CVAR_GLOBALCONFIG|CVAR_ARCHIVE)
|
||||
|
||||
//Disable reflections in VR
|
||||
CUSTOM_CVAR(Bool, gl_plane_reflection, false, CVAR_GLOBALCONFIG|CVAR_ARCHIVE)
|
||||
{
|
||||
gl_plane_reflection_i = self;
|
||||
}
|
||||
|
|
|
@ -89,7 +89,7 @@ CUSTOM_CVAR(Bool, gl_texture_usehires, true, CVAR_ARCHIVE|CVAR_NOINITCALL)
|
|||
if (GLRenderer != NULL) GLRenderer->FlushTextures();
|
||||
}
|
||||
|
||||
CVAR(Bool, gl_precache, false, CVAR_ARCHIVE)
|
||||
CVAR(Bool, gl_precache, true, CVAR_ARCHIVE)
|
||||
|
||||
TexFilter_s TexFilter[]={
|
||||
{GL_NEAREST, GL_NEAREST, false},
|
||||
|
|
|
@ -3409,6 +3409,12 @@ FUNC(LS_Line_SetPortalTarget)
|
|||
FUNC(LS_Sector_SetPlaneReflection)
|
||||
// Sector_SetPlaneReflection (tag, floor, ceiling)
|
||||
{
|
||||
if (!gl_plane_reflection_i)
|
||||
{
|
||||
//If no reflections, just return
|
||||
return true;
|
||||
}
|
||||
|
||||
int secnum;
|
||||
FSectorTagIterator itr(arg0);
|
||||
|
||||
|
|
|
@ -2762,6 +2762,7 @@ GLPREFMNU_FOGMODE = "Fog mode";
|
|||
GLPREFMNU_FOGFORCEFULLBRIGHT = "Fog forces fullbright";
|
||||
GLPREFMNU_WPNLIGHTSTR = "Weapon light strength";
|
||||
GLPREFMNU_ENVIRONMENTMAPMIRROR = "Environment map on mirrors";
|
||||
GLPREFMNU_PLANEREFLECTION = "Plane Reflections (shiny floors etc)";
|
||||
GLPREFMNU_ENV = "Enhanced night vision mode";
|
||||
GLPREFMNU_ENVSTEALTH = "ENV shows stealth monsters";
|
||||
GLPREFMNU_SPRBRIGHTFOG = "Force brightness in fog";
|
||||
|
|
|
@ -2733,6 +2733,7 @@ GLPREFMNU_FOGMODE = "Mode du broullard";
|
|||
GLPREFMNU_FOGFORCEFULLBRIGHT = "Brouillard force fullbright";
|
||||
GLPREFMNU_WPNLIGHTSTR = "Intensité lumineuse des armes";
|
||||
GLPREFMNU_ENVIRONMENTMAPMIRROR = "Mappage environment sur les miroirs";
|
||||
GLPREFMNU_PLANEREFLECTION = "Plane Reflections (shiny floors etc)";
|
||||
GLPREFMNU_ENV = "Mode de vision nocture amélioré";
|
||||
GLPREFMNU_ENVSTEALTH = "VNA affiche monstres invisibles";
|
||||
GLPREFMNU_SPRBRIGHTFOG = "Forcer luminosité dans brouillard";
|
||||
|
|
|
@ -2658,6 +2658,7 @@ OptionMenu "OpenGLOptions" protected
|
|||
Option "$GLPREFMNU_FOGFORCEFULLBRIGHT", gl_brightfog, "YesNo"
|
||||
Slider "$GLPREFMNU_WPNLIGHTSTR", gl_weaponlight, 0,32, 2
|
||||
Option "$GLPREFMNU_ENVIRONMENTMAPMIRROR", gl_mirror_envmap, "OnOff"
|
||||
Option "$GLPREFMNU_PLANEREFLECTION", gl_plane_reflection, "OnOff"
|
||||
Option "$GLPREFMNU_ENV", gl_enhanced_nightvision, "OnOff"
|
||||
Option "$GLPREFMNU_ENVSTEALTH", gl_enhanced_nv_stealth, "EnhancedStealth"
|
||||
Option "$GLPREFMNU_SPRCLIP", gl_spriteclip, "SpriteclipModes"
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue