mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
- added 'r_debug_disable_vis_filter' cvar for debug purposes, to show all objects regardless of their actor filter fields.
This commit is contained in:
parent
1bfc2faa49
commit
b6c15b997a
4 changed files with 7 additions and 3 deletions
|
@ -218,6 +218,7 @@ CUSTOM_CVAR (String, vid_cursor, "None", CVAR_ARCHIVE | CVAR_NOINITCALL)
|
||||||
CVAR (Bool, disableautoload, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
CVAR (Bool, disableautoload, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
||||||
CVAR (Bool, autoloadbrightmaps, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
CVAR (Bool, autoloadbrightmaps, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
||||||
CVAR (Bool, autoloadlights, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
CVAR (Bool, autoloadlights, false, CVAR_ARCHIVE | CVAR_NOINITCALL | CVAR_GLOBALCONFIG)
|
||||||
|
CVAR (Bool, r_debug_disable_vis_filter, false, 0)
|
||||||
|
|
||||||
bool wantToRestart;
|
bool wantToRestart;
|
||||||
bool DrawFSHUD; // [RH] Draw fullscreen HUD?
|
bool DrawFSHUD; // [RH] Draw fullscreen HUD?
|
||||||
|
|
|
@ -76,6 +76,7 @@ CUSTOM_CVAR(Int, gl_fuzztype, 0, CVAR_ARCHIVE)
|
||||||
}
|
}
|
||||||
|
|
||||||
EXTERN_CVAR (Float, transsouls)
|
EXTERN_CVAR (Float, transsouls)
|
||||||
|
EXTERN_CVAR (Bool, r_debug_disable_vis_filter)
|
||||||
|
|
||||||
extern TArray<spritedef_t> sprites;
|
extern TArray<spritedef_t> sprites;
|
||||||
extern TArray<spriteframe_t> SpriteFrames;
|
extern TArray<spriteframe_t> SpriteFrames;
|
||||||
|
@ -681,7 +682,7 @@ void GLSprite::Process(AActor* thing, sector_t * sector, int thruportal)
|
||||||
|
|
||||||
// check renderrequired vs ~r_rendercaps, if anything matches we don't support that feature,
|
// check renderrequired vs ~r_rendercaps, if anything matches we don't support that feature,
|
||||||
// check renderhidden vs r_rendercaps, if anything matches we do support that feature and should hide it.
|
// check renderhidden vs r_rendercaps, if anything matches we do support that feature and should hide it.
|
||||||
if ((!!(thing->RenderRequired & ~r_renderercaps)) ||
|
if (!r_debug_disable_vis_filter && (!!(thing->RenderRequired & ~r_renderercaps)) ||
|
||||||
(!!(thing->RenderHidden & r_renderercaps)))
|
(!!(thing->RenderHidden & r_renderercaps)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
|
|
||||||
EXTERN_CVAR(Float, transsouls)
|
EXTERN_CVAR(Float, transsouls)
|
||||||
EXTERN_CVAR(Int, r_drawfuzz)
|
EXTERN_CVAR(Int, r_drawfuzz)
|
||||||
|
EXTERN_CVAR (Bool, r_debug_disable_vis_filter)
|
||||||
extern uint32_t r_renderercaps;
|
extern uint32_t r_renderercaps;
|
||||||
|
|
||||||
bool RenderPolySprite::GetLine(AActor *thing, DVector2 &left, DVector2 &right)
|
bool RenderPolySprite::GetLine(AActor *thing, DVector2 &left, DVector2 &right)
|
||||||
|
@ -179,7 +180,7 @@ bool RenderPolySprite::IsThingCulled(AActor *thing)
|
||||||
|
|
||||||
// check renderrequired vs ~r_rendercaps, if anything matches we don't support that feature,
|
// check renderrequired vs ~r_rendercaps, if anything matches we don't support that feature,
|
||||||
// check renderhidden vs r_rendercaps, if anything matches we do support that feature and should hide it.
|
// check renderhidden vs r_rendercaps, if anything matches we do support that feature and should hide it.
|
||||||
if ((!!(thing->RenderRequired & ~r_renderercaps)) ||
|
if (!r_debug_disable_vis_filter && (!!(thing->RenderRequired & ~r_renderercaps)) ||
|
||||||
(!!(thing->RenderHidden & r_renderercaps)))
|
(!!(thing->RenderHidden & r_renderercaps)))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@
|
||||||
|
|
||||||
EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor);
|
EXTERN_CVAR(Bool, r_fullbrightignoresectorcolor);
|
||||||
EXTERN_CVAR(Bool, r_drawvoxels);
|
EXTERN_CVAR(Bool, r_drawvoxels);
|
||||||
|
EXTERN_CVAR(Bool, r_debug_disable_vis_filter);
|
||||||
extern uint32_t r_renderercaps;
|
extern uint32_t r_renderercaps;
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
|
@ -971,7 +972,7 @@ namespace swrenderer
|
||||||
|
|
||||||
// check renderrequired vs ~r_rendercaps, if anything matches we don't support that feature,
|
// check renderrequired vs ~r_rendercaps, if anything matches we don't support that feature,
|
||||||
// check renderhidden vs r_rendercaps, if anything matches we do support that feature and should hide it.
|
// check renderhidden vs r_rendercaps, if anything matches we do support that feature and should hide it.
|
||||||
if ((!!(thing->RenderRequired & ~r_renderercaps)) ||
|
if (!r_debug_disable_vis_filter && (!!(thing->RenderRequired & ~r_renderercaps)) ||
|
||||||
(!!(thing->RenderHidden & r_renderercaps)))
|
(!!(thing->RenderHidden & r_renderercaps)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue