LightComponent

LightComponent

Defines a light

Constructor

new LightComponent(light)

Parameters:
Name Type Description
light Light

Light to contain in this component (directional, spot, point)

Members

hidden :boolean

isPickable :boolean

Can the entity on which this component resides be picked using this component

light

Light contained in this component.

pickBounds :BoundingBox

A BoundingBox used for frustum selection of LightComponents

Methods

getFrustumPickResult(entity, view) → {string}

Default frustum picking behavior for entities with a LightComponent

Parameters:
Name Type Description
entity

the entity to be picked or not

view

the view containing the frustum to check against