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
.
Name | Type | Description |
---|---|---|
color | ColorType | The base color. |
intensity | number | The light's strength. |
distance | number | The distance of the light. |
angle | number | The angle of the light. |
penumbra | number | The penumbra of the light. |
decay | number | The decay of the light. |
helper | boolean | Show a visual helper. |
Example
<SpotLight
color="#ffffff"
intensity={1}
distance={0}
angle={Math.PI / 4}
penumbra={0}
decay={1}
/>
Available on: Client Server