Lights

class geometries.sph.lights.constDirLight.ConstDirLight.ConstDirLight(color, intensity=1, direction)

Light at a fixed direction

Constructor.

Arguments:
  • color (Color) – the color of the light

  • intensity (number) – the intensity of the light

  • direction (Vector4) – the direction of the light.

geometries.sph.lights.constDirLight.ConstDirLight.ConstDirLight.ConstDirLight

Constructor.

geometries.sph.lights.constDirLight.ConstDirLight.ConstDirLight.isGlobal

type: boolean

Says whether the shape is global. True if global, false otherwise.

static geometries.sph.lights.constDirLight.ConstDirLight.ConstDirLight.glslClass()

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string

class geometries.sph.lights.localPointLight.LocalPointLight.LocalPointLight(position, color, intensity=1)

Spherical point light

Constructor

Arguments:
  • position (Point|Vector) – data for the position of the light - If the input in a Point, then the position is that point. - If the input is a Vector, then the position is the image of this vector by the exponential map at the origin.

  • color (Color) – the color of the light

  • intensity (number) – the intensity of the light

geometries.sph.lights.localPointLight.LocalPointLight.LocalPointLight.LocalPointLight

Constructor

geometries.sph.lights.localPointLight.LocalPointLight.LocalPointLight.color

type: Color

The color or the light.

geometries.sph.lights.localPointLight.LocalPointLight.LocalPointLight.intensity

type: number

The intensity or the light.

geometries.sph.lights.localPointLight.LocalPointLight.LocalPointLight.isGlobal

type: boolean

Says whether the shape is global. True if global, false otherwise.

geometries.sph.lights.localPointLight.LocalPointLight.LocalPointLight.isLocal

type: boolean

Says whether the shape is local. True if local, false otherwise

geometries.sph.lights.localPointLight.LocalPointLight.LocalPointLight.position

type: Point

The position of the light.

static geometries.sph.lights.localPointLight.LocalPointLight.LocalPointLight.glslClass()

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string

class geometries.sph.lights.pointLight.PointLight.PointLight(position, color, intensity=1)

Spherical point light

Constructor

Arguments:
  • position (Point|Vector) – data for the position of the light - If the input in a Point, then the position is that point. - If the input is a Vector, then the position is the image of this vector by the exponential map at the origin.

  • color (Color) – the color of the light

  • intensity (number) – the intensity of the light

geometries.sph.lights.pointLight.PointLight.PointLight.PointLight

Constructor

geometries.sph.lights.pointLight.PointLight.PointLight.color

type: Color

The color or the light.

geometries.sph.lights.pointLight.PointLight.PointLight.intensity

type: number

The intensity or the light.

geometries.sph.lights.pointLight.PointLight.PointLight.isGlobal

type: boolean

Says whether the shape is global. True if global, false otherwise.

geometries.sph.lights.pointLight.PointLight.PointLight.isLocal

type: boolean

Says whether the shape is local. True if local, false otherwise

geometries.sph.lights.pointLight.PointLight.PointLight.position

type: Point

The position of the light.

static geometries.sph.lights.pointLight.PointLight.PointLight.glslClass()

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string