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>
Property | Description | Default Value |
---|---|---|
angle | Maximum extent of spot light from its direction (in degrees). | 60 |
decay | Amount the light dims along the distance of the light. | 1.0 |
distance | Distance where intensity becomes 0. If distance is 0, then the point light does not decay with distance. | 0.0 |
penumbra | Percent of the spotlight cone that is attenuated due to penumbra. | 0.0 |
target | element the spot should point to. set to null to transform spotlight by orientation, pointing to it’s -Z axis. | null |