Garry's Mod Wiki

Revision Difference

render.SetShadowsDisabled#565352

<function name="SetShadowsDisabled" parent="render" type="libraryfunc"> <description>Sets whether any future render operations will ignore shadow drawing.</description>⤶ <description>Sets whether all shadow rendering should be disabled.⤶ Internally sets `r_shadows_gamecontrol` convar, exactly like `shadow_control` does via its `SetShadowsDisabled` input.⤶ ⤶ <bug>Currently broken due to internal bug. Will be fixed in the next update, as of 15 Sept 2025.</bug>⤶ </description>⤶ <realm>Client</realm> <args> <arg name="newState" type="boolean"></arg>⤶ <arg name="disable" type="boolean">`true` to disable shadows, `false` to enable.</arg>⤶ </args> </function>