Spot and Point Light

Spot and Point Light

Topic Progress:

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

Three.js is the Javascript Engine behind A-Frame.

Comments are closed.