render.SetModelLighting

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

Contents

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-255), instead, higher values will result in a brighter light.

Arguments

number lightDirection

The light source to edit, see BOX_ Enums.

Arguments

number red

The red component of the light color.

Arguments

number green

The green component of the light color.

Arguments

number blue

The blue component of the light color.
Personal tools
Navigation