API Docs for: 0.2.0
Show:

PointLight Class

Module: LE

The PointLight class is used to render a light with a full 360 degree range. When calculating shadows from this type of light they are calculated from a single point

Constructor

PointLight

(
  • [parameters]
)

Parameters:

  • [parameters] Object optional

    Parameters is an object that contains the PointLights properties

    • [x=0] Number optional

      X position

    • [y=0] Number optional

      Y position

    • [colour=new LE.Colour(255, 255, 255, 255)] Colour optional

      Colour, default is white

    • [intensity=0.1] Number optional

      Light intensity/brightness

    • [shader=LE.LightShaders.POINT_LIGHT] Number optional

      Index of the shader used during rendering

Item Index

Properties

Properties

colour

Colour

Default: new LE.Colour(255, 255, 255, 255)

intensity

Number

Default: 0.1

shader

Number

Default: LE.LightShaders.POINT_LIGHT

type

String

Automatically generated on creation

x

Number

Default: 0

y

Number

Default: 0