Class LightPunctual
Light
Inherited Members
Namespace: GLTFast.Schema
Assembly: solution.dll
Syntax
[Serializable]
public class LightPunctual : NamedObject
Fields
color
RGB values for light's color in linear space
Declaration
[Obsolete("Use LightColor for access.")]
public float[] color
Field Value
Type | Description |
---|---|
float[] |
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
public float intensity
Field 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
public float range
Field Value
Type | Description |
---|---|
float |
spot
Spot light properties (only set on spot lights).
Declaration
public SpotLight spot
Field Value
Type | Description |
---|---|
SpotLight |
type
Light type
Declaration
[Obsolete("Use GetLightType and SetLightType for access.")]
public string type
Field Value
Type | Description |
---|---|
string |
Properties
LightColor
Light's color in linear space
Declaration
public Color LightColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Methods
GetLightType()
Returns the type of the light It converts the type string and caches it.
Declaration
public LightPunctual.Type GetLightType()
Returns
Type | Description |
---|---|
LightPunctual.Type | Light type, if it was retrieved correctly. Unknown otherwise |
SetLightType(Type)
Sets the type of the light
Declaration
public void SetLightType(LightPunctual.Type lightType)
Parameters
Type | Name | Description |
---|---|---|
LightPunctual.Type | lightType | Light type |