Plush

LocalLight#

PlushEngine · Type index

Namespace: PlushEngine

A point or spot light at its object's position. Intensity is the brightness a facing white surface shows at 1 m (inverse-square beyond, fading out at Range). Cone above 0 makes a spot of that full angle in degrees along the object's local −Z, with Softness (0..1) of the cone feathered. With CastShadows the renderer draws a shadow map for it (a spot: one tile; a point: six) from a per-frame atlas shared by the nearest shadow-casting lights.

public sealed record LocalLight(string Color = "#FFFFFF", float Intensity = 20f, float Range = 10f, float Cone = 0f, float Softness = .5f, bool CastShadows = false, float Width = 0f, float Height = 0f)

Record properties#

PropertyTypeAccessConstructor default
Colorstringget; init;"#FFFFFF"
Intensityfloatget; init;20f
Rangefloatget; init;10f
Conefloatget; init;0f
Softnessfloatget; init;.5f
CastShadowsboolget; init;false
Widthfloatget; init;0f
Heightfloatget; init;0f

Members: IsArea

IsArea#

public bool IsArea { get; }

Source#