QuakeServer.Extensions.Lights (quake_server v0.1.0)

Copy Markdown View Source

FTE's light builtins: getlight (the world's light at a point, 0 to 255 a channel, as Cauldron3D.Bsp.Light.at/4 finds it), lightstyle with an optional colour, getlightstyle (the pattern, and the colour through its second argument) and getlightstylergb (the colour scaled by the pattern's brightness now, m being 1.03).

Colours are kept in the host's ext.lightstyle_rgb, style to {r, g, b}, white when never given.

Summary

Functions

Run light style builtin builtin (a number or a name).

Every light style's scale now, style to scale, 256 normal.

Functions

call(s, arg2, argc)

@spec call(map(), integer() | String.t(), non_neg_integer()) :: map()

Run light style builtin builtin (a number or a name).

scales(s)

@spec scales(map()) :: %{required(non_neg_integer()) => float()}

Every light style's scale now, style to scale, 256 normal.