Class PunctualLight

PunctualLight class

A directional, point, or spot light.

public sealed class PunctualLight : LogicalChildOfRoot

Properties

NameDescription
Color { get; set; }Gets or sets the RGB value for light’s color in linear space.
Extensions { get; }Gets a collection of JsonSerializable instances.
Extras { get; set; }Gets or sets the extras content of this instance.
InnerConeAngle { get; }Gets the Angle, in radians, from centre of spotlight where falloff begins. Must be greater than or equal to 0 and less than outerConeAngle.
Intensity { get; set; }Gets or sets the Brightness of light in. The units that this is defined in depend on the type of light. point and spot lights use luminous intensity in candela (lm/sr) while directional lights use illuminance in lux (lm/m2)
LightType { get; }Gets the type of light.
LogicalIndex { get; }Gets the zero-based index of this object in the Logical resources of GlbData.
LogicalParent { get; }Gets the GlbData instance that owns this object.
Name { get; set; }Gets or sets the display text name, or null.
OuterConeAngle { get; }Gets Angle, in radians, from centre of spotlight where falloff ends. Must be greater than innerConeAngle and less than or equal to PI / 2.0.
Range { get; set; }Gets or sets a Hint defining a distance cutoff at which the light’s intensity may be considered to have reached zero. Supported only for point and spot lights. When undefined, range is assumed to be infinite.
static LocalDirection { get; }Gets the Local light direction.

Methods

NameDescription
GetExtension<T>()
RemoveExtensions<T>()
RemoveExtensions<T>(T)
SetColor(Vector3, float, float)Defines the light color, intensity and range for the current PunctualLight.
SetExtension<T>(T)
SetSpotCone(float, float)Sets the cone angles for the Spot light.
UseExtension<T>()

See Also