Lights

class geometries.sl2.lights.constDirLight.ConstDirLight.ConstDirLight(color, intensity, direction)

Constant local direction

Constructor.

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

  • intensity (number) – the intensity of the light

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

geometries.sl2.lights.constDirLight.ConstDirLight.ConstDirLight.ConstDirLight

Constructor.

geometries.sl2.lights.constDirLight.ConstDirLight.ConstDirLight.isGlobal

type: boolean

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

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

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string

class geometries.sl2.lights.localFakePointLight.LocalFakePointLight.LocalFakePointLight(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.sl2.lights.localFakePointLight.LocalFakePointLight.LocalFakePointLight.LocalFakePointLight

Constructor

geometries.sl2.lights.localFakePointLight.LocalFakePointLight.LocalFakePointLight.isGlobal

type: boolean

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

static geometries.sl2.lights.localFakePointLight.LocalFakePointLight.LocalFakePointLight.glslClass()

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string