PointLight Class
PointLight models a light that has a position within the scene and from which light eminates in all directions equally. These lights also have an attenuation which describes how the light falls off over distance. A number of attentuation types are provided such as none (no fall-off over distance), linear (fall-off directly related to the distance from the light) and squared (fall-off related to distance squared).
Item Index
Methods
Methods
create
(
Phoria.Entity
-
desc
Factory create method - object literal Light description
{
position: {x:0,y:0,z:0},
color: [0-1,0-1,0-1],
intensity: 0-1,
attenuation: 0-1,
attenuationFactor: "none"|"linear"|"squared"
}
Parameters:
-
descObjectdescription
Returns:
Phoria.Entity:
point light entity
