Plush

DirectionalLight#

PlushEngine · Type index

Namespace: PlushEngine

Directional light shining along its object's local -Z (like the camera looks). Color is sRGB hex; intensity scales direct light; ambient is a uniform fill in the same linear units.

public sealed record DirectionalLight(string Color = "#FFFFFF", float Intensity = 2f, float Ambient = .25f, bool CastShadows = true, float ShadowDistance = 40, float ShadowSoftness = 1.5f, float ContactShadows = .3f)

Record properties#

PropertyTypeAccessConstructor default
Colorstringget; init;"#FFFFFF"
Intensityfloatget; init;2f
Ambientfloatget; init;.25f
CastShadowsboolget; init;true
ShadowDistancefloatget; init;40
ShadowSoftnessfloatget; init;1.5f
ContactShadowsfloatget; init;.3f

Source#