LocalLight#
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#
| Property | Type | Access | Constructor default |
|---|---|---|---|
Color | string | get; init; | "#FFFFFF" |
Intensity | float | get; init; | 20f |
Range | float | get; init; | 10f |
Cone | float | get; init; | 0f |
Softness | float | get; init; | .5f |
CastShadows | bool | get; init; | false |
Width | float | get; init; | 0f |
Height | float | get; init; | 0f |
Members: IsArea
IsArea#
public bool IsArea { get; }Source#
- Model3D.cs