Interface: LightProps
WebSG.LightProps
LightProps is an interface that defines the properties for creating a Light instance.
Table of contents
Properties
Properties
color
• Optional
color: ArrayLike
<number
>
The optional RGB color of the light. Default is white.
Defined in
innerConeAngle
• Optional
innerConeAngle: number
The optional inner cone angle of the light, for spot lights.
Defined in
intensity
• Optional
intensity: number
The optional intensity of the light. Default is 1.
Defined in
name
• Optional
name: string
The optional name of the light.
Defined in
outerConeAngle
• Optional
outerConeAngle: number
The optional outer cone angle of the light, for spot lights.
Defined in
range
• Optional
range: number
The optional range of the light, for point and spot lights.
Defined in
type
• type: LightType
The type of the light.