shamansir / elm-aframe / AFrame.Components.Light

Light

type_ : AFrame.Variants.Light.Light -> AFrame.Properties.Property

One of ambient, directional, hemisphere, point, spot.

Default : directional

Colors

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

Rotation

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

Characteristics

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

Shadow

See AFrame.Components.Shadow for shadow properties

castShadow : Basics.Bool -> AFrame.Properties.Property

Whether this light casts shadows on the scene.

Default : false