Mat wireframe: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Oops.)
(Inserted color codes for sprites and decals.)
Line 5: Line 5:
It has four settings (0-3).
It has four settings (0-3).


Model polygons are always outlined in cyan.


;mat_wireframe 0:Do not display any wireframes.
;mat_wireframe 0:Do not display any wireframes.
Line 11: Line 10:
;mat_wireframe 2:Outlines all visible [[world brush]] polygons (in green).
;mat_wireframe 2:Outlines all visible [[world brush]] polygons (in green).
;mat_wireframe 3:Outlines all rendered [[visleafs]] (in pink).
;mat_wireframe 3:Outlines all rendered [[visleafs]] (in pink).
No matter what active mode, the non-world brushes always use the following wireframe color codes:
*Models - Cyan
*Sprites - Green
*Decals - Yellow


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

Revision as of 11:01, 12 February 2011

Mat_wireframe set to 1. Note the tree is being drawn by the engine even though it is behind the wall. This is an example of visibility issues.

A console variable that (when active) renders a wireframe that shows how much of the game world is being rendered, and how.

It has four settings (0-3).


mat_wireframe 0
Do not display any wireframes.
mat_wireframe 1
Outlines all rendered world brush polygons (in pink). (This setting outlines hidden polygons as well.)
mat_wireframe 2
Outlines all visible world brush polygons (in green).
mat_wireframe 3
Outlines all rendered visleafs (in pink).


No matter what active mode, the non-world brushes always use the following wireframe color codes:

  • Models - Cyan
  • Sprites - Green
  • Decals - Yellow


This variable is a cheat.


See also