render.SetModelLighting
Description
Sets up the ambient lighting for any upcoming render operation. Ambient lighting can be seen as a cube enclosing the object to be drawn, each of its faces representing a directional light source that shines towards the object. Thus, there is a total of six different light sources that can be configured separately.
Light color components are not restricted to a specific range (i.e. 0-1), instead, higher values will result in a brighter light.
render.ResetModelLighting will set all 6 directions at once. See also render.SetLocalModelLights.
Garry's Mod
Rust
Steamworks
Wiki Help