Class LightPunctual
Light
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class LightPunctual : NamedObject
Properties
Color
Light's color in linear space
Declaration
[JsonIgnore]
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Intensity
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)
Declaration
[JsonIgnore]
public float Intensity { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Range
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. Must be > 0. When undefined, range is assumed to be infinite.
Declaration
[JsonIgnore]
public float Range { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Spot
Spot light properties (only set on spot lights).
Declaration
[JsonPropertyName("spot")]
public SpotLight Spot { get; set; }
Property Value
| Type | Description |
|---|---|
| SpotLight |
Type
Light type
Declaration
[JsonPropertyName("type")]
[JsonConverter(typeof(LightTypeValueConverter))]
public EnumOrRawValue<LightType> Type { get; set; }
Property Value
| Type | Description |
|---|---|
| EnumOrRawValue<LightType> |