Mat leafvis: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (expanded)
(Wrote a more ''general'' general description.)
Line 1: Line 1:
A [[Developer Console|console]] variable that (when active) provides updated information about the [[visleaf]] that the camera is currently in. The number of the leaf, area and cluster of the current leaf is reported in the [[console]], and its volume is outlined (in red).
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:Draw the visleaf the player is currently standing in as a red wireframe.
;mat_leafvis 1:Draw the visleaf 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]].
;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]].

Revision as of 20:56, 17 February 2011

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 3
Draw all visible leaves. Note that this is unaffected by r_lockpvs.

This variable is a cheat.

See also