Class LightPunctual
Light
Inherited Members
Namespace: GLTFast.Schema
Assembly: solution.dll
Syntax
[Serializable]
public class LightPunctual : NamedObject
Fields
Name | Description |
---|---|
color | RGB values for light's color in linear space |
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) |
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. |
spot | Spot light properties (only set on spot lights). |
type | Light type |
Properties
Name | Description |
---|---|
LightColor | Light's color in linear space |
Methods
Name | Description |
---|---|
GetLightType() | Returns the type of the light It converts the type string and caches it. |
SetLightType(Type) | Sets the type of the light |