Lights

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

Light at infinity in the E-direction

Constructor.

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

  • intensity (number) – the intensity of the light

  • direction (Vector4) – the direction of the light. It should be on of the following values: - -1 (light coming from the negative direction) - +1 (light coming from the positive direction)

geometries.h2e.lights.constDirLight.ConstDirLight.ConstDirLight.ConstDirLight

Constructor.

geometries.h2e.lights.constDirLight.ConstDirLight.ConstDirLight.isGlobal

type: boolean

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

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

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string

class geometries.h2e.lights.esun.ESun.ESun(color, intensity=1, direction)

Light at infinity in the E-direction

Constructor.

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

  • intensity (number) – the intensity of the light

  • direction (number) – the direction of the light. It should be on of the following values: - -1 (light coming from the negative direction) - +1 (light coming from the positive direction)

geometries.h2e.lights.esun.ESun.ESun.ESun

Constructor.

geometries.h2e.lights.esun.ESun.ESun.isGlobal

type: boolean

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

static geometries.h2e.lights.esun.ESun.ESun.glslClass()

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string

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

Constructor

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

  • position (Point) – the position of the light

  • intensity (number) – the intensity of the light

geometries.h2e.lights.localPointLight.LocalPointLight.LocalPointLight.LocalPointLight

Constructor

geometries.h2e.lights.localPointLight.LocalPointLight.LocalPointLight.isGlobal

type: boolean

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

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

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string

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

Light at infinity in the positive E-direction

Constructor

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

  • position (Point) – the position of the light

  • intensity (number) – the intensity of the light

geometries.h2e.lights.pointLight.PointLight.PointLight.PointLight

Constructor

geometries.h2e.lights.pointLight.PointLight.PointLight.isGlobal

type: boolean

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

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

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string