Garry's Mod Wiki

SunInfo

Description

Returned by util.GetSunInfo.

Members

Vector direction
The sun's direction relative to 0,0,0.
number obstruction
Indicates how obstructed the sun is, 1 not visible, 0 fully visible.
table with Color structure overlayColor
Color of sun's overlay in 0-255 range as Color structure.
string overlayMaterial
The sun's overlay name of material. For example: sprites/light_glow02_add_noz.vmt.
number overlaySize
Size of sun's overlay.
table with Color structure sunColor
Color of sun in 0-255 range as Color structure.
string sunMaterial
The sun's name of material.
number sunSize
Size of sun.
boolean enabled
State of sun.