API Docs for: 0.9.16
Show:

PointLight Class

Defined in: phoria-entity.js:1004
Module: Entity

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

(
  • desc
)
Phoria.Entity
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:

Returns:

Phoria.Entity:

point light entity