back to overview

back to reference

back to elements index


light-element

icon

namespace:

version:

branch type:

activable type:

sender type:

receiver type:

root type:

core3d

1.0.0.

true

true

false

true

false

The Light-Element contains a 3D light object. At this time, a light influences only it's father own branch.


default configuration:

value:

type:

array:

required:

light:cut-off-angle

float

no

no

Default value:'0.5'

light:light-type

string

no

no

Default value:'ambient-light'

light:attenuation

float

yes

no

Default value:'0.2, 0.2, 0.2'

light:global-only

bool

no

no

Default value:'true'

light:ambient-color

float

yes

no

Default value:'1.0, 1.0, 1.0'

light:diffuse-color

float

yes

no

Default value:'0.4, 0.4, 0.4'

light:position

float

yes

no

Default value:'0.0, 0.0, 0.0'

light:specular-color

float

yes

no

Default value:'0.2, 0.2, 0.2'

light:light-switch

bool

no

no

Default value:'true'

light:direction

float

yes

no

Default value:'0.0, 0.0, 0.0'

light:drop-off-rate-exponent

float

no

no

Default value:'0.5'

Commands:

light-state-command
color-command
light-command

Events: