Skip to main content

SpotLight

SpotLight is a light source positioned at a point that spreads in all directions. It can be used to simulate a light bulb.

Syntax

<SpotLight />

Parameters

All objects share the same base parameters from ComponentObjectProps.

NameTypeDescription
colorColorTypeThe base color.
intensitynumberThe light's strength.
distancenumberThe distance of the light.
anglenumberThe angle of the light.
penumbranumberThe penumbra of the light.
decaynumberThe decay of the light.
helperbooleanShow a visual helper.

Example

<SpotLight
color="#ffffff"
intensity={1}
distance={0}
angle={Math.PI / 4}
penumbra={0}
decay={1}
/>

Available on: Client Server