mat_show_distance_field Command

Explore usage, syntax, and examples for the mat_show_distance_field CS2 developer console command.

mat_show_distance_field

CS2 Only

Command

mat_show_distance_field

<0 / 1 / 2>

Enables or disables the visualization of the distance field and camera trace to analyze occlusion. Useful for debugging.

<0 / 1 / 2>

Selects the distance field visualization mode: 0 = off, 1 = show camera trace, 2 = show occlusion.

sv_cheats Required

Yes

Client or Server Command

Unspecified

Default Value

0

mat_show_distance_field Generator

Command

mat_show_distance_field

<0 / 1 / 2>
0/1 Arguments Selected

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

Command

mat_show_distance_field

0

Turn off distance field visualization.

Command

mat_show_distance_field

1

Show the trace from the camera to help debug view occlusion.

Command

mat_show_distance_field

2

Show occlusion based on the distance field.