API

Function createPointLight

  • Creates a point light that emits in all directions from position with distance falloff.

    Parameters

    • position: [number, number, number]

      World-space position of the light.

    • intensity: number = 1.0

      Scalar multiplier applied to the light's diffuse and specular contribution.

    Returns PointLight

    Plain PointLight data to be added to a scene via addToScene.