type_ : AFrame.Variants.Light.Light -> AFrame.Properties.Property
One of ambient
, directional
, hemisphere
, point
, spot
.
Default : directional
color : Color -> AFrame.Properties.Property
Light color.
ambient
, directional
, hemisphere
(from above), point
, spot
Default : #fff
groundColor : Color -> AFrame.Properties.Property
Light color from below.
hemisphere
Default : #fff
target : String -> AFrame.Properties.Property
element the spot should point to. set to null to transform spotlight by orientation, pointing to it’s -Z
axis
spot
Default : null
distance : Basics.Float -> AFrame.Properties.Property
Distance where intensity becomes 0
. If distance is 0
, then the point light does not decay with distance.
point
, spot
Default : 0.0
angle : Basics.Float -> AFrame.Properties.Property
Maximum extent of spot light from its direction (in degrees).
spot
Default : 60
intensity : Basics.Float -> AFrame.Properties.Property
Light strength.
ambient
, directional
, hemisphere
, point
, spot
Default : 1.0
decay : Basics.Float -> AFrame.Properties.Property
Amount the light dims along the distance of the light.
point
, spot
Default : 1.0
penumbra : Basics.Float -> AFrame.Properties.Property
Percent of the spotlight cone that is attenuated due to penumbra.
spot
Default : 0.0
See AFrame.Components.Shadow
for shadow properties
castShadow : Basics.Bool -> AFrame.Properties.Property
Whether this light casts shadows on the scene.
Default : false