DModelPanel.SetDirectionalLight

From GMod Wiki

Jump to: navigation, search
Function
Syntax DModelPanel.SetDirectionalLight( enum LightPlacement, Color LightColor )
Description:
Sets a directional light source on the panel, like a spotlight
Returns: nil
In Object: DModelPanel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DModelPanel.SetDirectionalLight]DModelPanel.SetDirectionalLight [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSets a directional light source on the panel, like a spotlight
Used onNewerClient.png
Code
DModelPanel.SetDirectionalLight( BOX_TOP, Color( 255, 255, 255, 255 ) )
OutputAn illumination effect on the selected panel.


Notes

SHARED | 0000000000000000 | 00000000000000000 | BOX_FRONT
SHARED | 0000000000000001 | 00000000000000001 | BOX_BACK
SHARED | 0000000000000002 | 00000000000000010 | BOX_RIGHT
SHARED | 0000000000000003 | 00000000000000011 | BOX_LEFT
SHARED | 0000000000000004 | 00000000000000100 | BOX_TOP
SHARED | 0000000000000005 | 00000000000000101 | BOX_BOTTOM

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox