Garry's Mod Wiki

DrawSunbeams

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 )

Page Links


Special Pages


Wikis

?

Render Time: 172ms

DB GetPage 40
Generate Html 11
SaveChanges (1) 104
Render Body 0
Render Sidebar 14