This article's documentation is for anything that uses the Source engine. Click here for more information.

Mat leafvis: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with 'A console variable that (when active) continuously outlines (in red) the visleaf that the player is currently in. ;mat_leafvis 0:Off ;mat_leafvis 1:On …')
 
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
A [[Developer Console|console]] variable that (when active) continuously outlines (in red) the [[visleaf]] that the player is currently in.
{{this is a|console variable|name=mat_leafvis}}
It is a [[Developer Console|console]] variable that (when active) displays [[visleaf|visleaves]]. The number of the leaf, area and cluster of the current leaf is reported in the [[console]].


;mat_leafvis 0:Off
;mat_leafvis 0:Off
;mat_leafvis 1:On
;mat_leafvis 1:Draw the visleaf the player is currently standing in as a red wireframe.
;mat_leafvis 2:Draw the current viscluster the player is currently standing in as a red wireframe.
;mat_leafvis 3:Draw ''all'' visible leaves. Note that this is unaffected by [[r_lockpvs]].


This variable is a [[sv_cheats|cheat]].
This variable is a [[sv_cheats|cheat]].


== See also ==
== See also ==
* [[Optimization (level design)]]
* [[Optimization (level design)]]
* [[visibility optimization]]
* [[Visibility optimization]]
 
* [[mat_wireframe]]
[[Category:Console Variables]]

Latest revision as of 18:02, 17 May 2024

mat_leafvis is a console variable available in all Source Source games. It is a console variable that (when active) displays visleaves. The number of the leaf, area and cluster of the current leaf is reported in the console.

mat_leafvis 0
Off
mat_leafvis 1
Draw the visleaf the player is currently standing in as a red wireframe.
mat_leafvis 2
Draw the current viscluster the player is currently standing in as a red wireframe.
mat_leafvis 3
Draw all visible leaves. Note that this is unaffected by r_lockpvs.

This variable is a cheat.

See also