Garry's Mod Wiki

Garry's Mod Wiki

  DrawSunbeams( number darken, number multiplier, number sunSize, number sunX, number sunY )

Description

Renders the post-processing effect of beams of light originating from the map's sun. Utilises the pp/sunbeams material.

Arguments

1 number darken
$darken property for sunbeams material.
2 number multiplier
$multiply property for sunbeams material.
3 number sunSize
$sunsize property for sunbeams material.
4 number sunX
$sunx property for sunbeams material.
5 number sunY
$suny property for sunbeams material.

Example

DrawSunbeams( 0.3, 0.12, 1, 1.2, 1.2 )

Example

Smaller sunbeams (more realistic)

DrawSunbeams( 0.1, 0.013, 0.14, 0.2, 0.6 )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...