Garry's Mod Wiki

render.GetLightColor

  Vector render.GetLightColor( Vector position )

Description

We advise against using this. It may be changed or removed in a future update. Same as render.ComputeLighting without the normal argument provided, so just use that

Gets the light exposure on the specified position.

This is effectively the same as render.ComputeLighting without the normal argument provided.

Arguments

1 Vector position
The position of the surface to get the light from.

Returns

1 Vector
The light color.