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.
This was recently added in version (2026.01.07). It might only be available on the Dev Branch right now.
string overlayMaterial
The sun's overlay name of material. For example: sprites/light_glow02_add_noz.vmt.
This was recently added in version (2026.01.07). It might only be available on the Dev Branch right now.
number overlaySize
Size of sun's overlay.
This was recently added in version (2026.01.07). It might only be available on the Dev Branch right now.
table with Color structure sunColor
Color of sun in 0-255 range as Color structure.
This was recently added in version (2026.01.07). It might only be available on the Dev Branch right now.
string sunMaterial
The sun's name of material.
This was recently added in version (2026.01.07). It might only be available on the Dev Branch right now.
number sunSize
Size of sun.
This was recently added in version (2026.01.07). It might only be available on the Dev Branch right now.
boolean enabled
State of sun.
This was recently added in version (2026.01.12). It might only be available on the Dev Branch right now.