Garry's Mod Wiki

render.SetLocalModelLights

render.SetLocalModelLights( table lights = {} )

Description

Sets up the local lighting for any upcoming render operation. Up to 4 local lights can be defined, with one of three different types (point, directional, spot).

Disables all local lights if called with no arguments.

Arguments

1 table lights = {}
A table containing up to 4 tables for each light source that should be set up. Each of these tables should contain the properties of its associated light source, see Structures/LocalLight.

Page Links


Special Pages


Wikis

?

Render Time: 81ms

DB GetPage 51
Generate Html 3
SaveChanges (1) 12
Render Body 0
Render Sidebar 12