aframe light (component)


Introduction

The light component defines the entity as a source of light. Light affects all materials that have not specified a flat shading model with shader: flat. Note that lights are computationally expensive we should limit number of lights in a scene.

Syntax

  • <a-entity light="color: #AFA; intensity: 1.5" position="-1 1 0"></a-entity>
  • <a-light type="point" color="blue" position="0 5 0"></a-light>

Parameters

ParametersDetails
typeOne of ambient, directional, hemisphere, point, spot.
colorLight color.
intensityLight strength.