Class SpotLight
glTF spot light properties
Inherited Members
Namespace: Unity.Cloud.Gltfast.Objects
Assembly: Unity.Cloud.Gltfast.dll
Syntax
[MovedFrom(true, "GLTFast.Schema", "glTFast", null)]
public class SpotLight
Properties
InnerConeAngle
Angle, in radians, from centre of spotlight where falloff begins Must be greater than or equal to 0 and less than outerConeAngle
Declaration
[JsonPropertyName("innerConeAngle")]
public float InnerConeAngle { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
OuterConeAngle
Angle, in radians, from centre of spotlight where falloff ends. Must be greater than innerConeAngle and less than or equal to PI / 2.0.
Declaration
[JsonIgnore]
public float OuterConeAngle { get; set; }
Property Value
| Type | Description |
|---|---|
| float |