Garry's Mod Wiki

render.ComputeLighting

Vector render.ComputeLighting( Vector position, Vector normal )

Description

Calculates the light color of a certain surface.

Arguments

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

Returns

1 Vector
A vector representing the light at that point.

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 5
Generate Html 4
SaveChanges (1) 9
Render Body 0
Render Sidebar 11