Command
mat_show_distance_field
<0 / 1 / 2>Explore usage, syntax, and examples for the mat_show_distance_field CS2 developer console command.
mat_show_distance_field
CS2 Onlymat_show_distance_field
<0 / 1 / 2>Enables or disables the visualization of the distance field and camera trace to analyze occlusion. Useful for debugging.
Selects the distance field visualization mode: 0 = off, 1 = show camera trace, 2 = show occlusion.
Yes
Unspecified
0
mat_show_distance_field Generator
mat_show_distance_field
<0 / 1 / 2>Set the options below to auto-generate your command. When everything looks good, click the Copy button and paste it into your in-game console.
mat_show_distance_field Examples
mat_show_distance_field
0
Turn off distance field visualization.
mat_show_distance_field
1
Show the trace from the camera to help debug view occlusion.
mat_show_distance_field
2
Show occlusion based on the distance field.