aframe light (component) Spot


Example

Spot lights are like point lights in the sense that they affect materials depending on its position and distance, but spot lights are not omni-directional. They mainly cast light in one direction, like the Bat-Signal.

<a-entity light="type: spot; angle: 45"></a-entity>
PropertyDescriptionDefault Value
angleMaximum extent of spot light from its direction (in degrees).60
decayAmount the light dims along the distance of the light.1.0
distanceDistance where intensity becomes 0. If distance is 0, then the point light does not decay with distance.0.0
penumbraPercent of the spotlight cone that is attenuated due to penumbra.0.0
targetelement the spot should point to. set to null to transform spotlight by orientation, pointing to it’s -Z axis.null