render.ComputeLighting

From Garry's Mod
Jump to: navigation, search
 render.ComputeLighting( )

Contents

Description

Calculates the light color of a certain surface.

Arguments

Vector position

The position of the surface to get the light from.

Arguments

Vector normal

The normal of the surface to get the light from.

Returns

Vector

A vector representing the light at that point.
Personal tools
Navigation