r_directlighting Command

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

r_directlighting

CS2 Only

Command

r_directlighting

<0 / 1>

Toggle direct lighting on or off to control how light sources illuminate the environment in the game.

<0 / 1>

Set to 1 to enable direct lighting or 0 to disable it.

sv_cheats Required

Yes

Client or Server Command

Unspecified

Default Value

1

r_directlighting Generator

Command

r_directlighting

<0 / 1>
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.

0 / 1

r_directlighting Examples

Command

r_directlighting

0

Turn off direct lighting to change how environments are lit by ignoring direct light sources.

Command

r_directlighting

1

Turn on direct lighting to make environments look more realistic using direct light sources.