Skip to main content

Light

Properties


intensity (float)
attenuation (float)
color (Color)
lightType (string)

Constructor


Empty constructor

Methods


setIntensity(intensity : float)

Sets the intensity of the light.

setAttenuation(attenuation : float)

Sets the attenuation(range) of the light.

setColor(color : Color)

Sets the color of the light.

setLightType(lightType : string)

Sets the type of the light. Valid types include:

  • Directional
  • Point