Spot and Point Light
Example with Spot and Point Light
No light at all (just a dark sky)
Spot Light only
Point Light only
Spot and Point light
Code
<a-light type="point" color="#FFF" intensity="0.6" position="0 0.5 -3.0" ></a-light> <a-light type="spot" angle="13" penumbra="0.1" color="#FFF" intensity="1.0" position="0 1 3" ></a-light>
Example
Play around with the light in this example.
Manuals
- Section <a-light> in A-Frame
- Spot Light in Three.js
- Point Light in Three.js
Three.js is the Javascript Engine behind A-Frame.
Previous TopicNext Topic