Garry's Mod Wiki

render.SetShadowsDisabled

  render.SetShadowsDisabled( boolean disable )

Description

Sets whether all shadow rendering should be disabled.

Internally sets r_shadows_gamecontrol convar, exactly like shadow_control does via its SetShadowsDisabled input.

Arguments

1 boolean disable
true to disable shadows, false to enable.