Lights

class geometries.nil.lights.constDirLight.ConstDirLight.ConstDirLight(color, intensity=1, 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.nil.lights.constDirLight.ConstDirLight.ConstDirLight.ConstDirLight

Constructor.

geometries.nil.lights.constDirLight.ConstDirLight.ConstDirLight.isGlobal

type: boolean

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

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

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string

class geometries.nil.lights.fakeLocalPointLight.FakeLocalPointLight.FakeLocalPointLight(position, color, intensity=1)

Constructor

Arguments:
  • position (Point) – position of the light

  • color (Color) – color of the light

  • intensity (number) – intensity of the light

geometries.nil.lights.fakeLocalPointLight.FakeLocalPointLight.FakeLocalPointLight.FakeLocalPointLight

Constructor

static geometries.nil.lights.fakeLocalPointLight.FakeLocalPointLight.FakeLocalPointLight.glslClass()

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string

class geometries.nil.lights.fakePointLight.FakePointLight.FakePointLight(position, color, intensity=1)

Constructor

Arguments:
  • position (Point) – position of the light

  • color (Color) – color of the light

  • intensity (number) – intensity of the light

geometries.nil.lights.fakePointLight.FakePointLight.FakePointLight.FakePointLight

Constructor

static geometries.nil.lights.fakePointLight.FakePointLight.FakePointLight.glslClass()

Return the chunk of GLSL code defining the corresponding structure.

Returns:

string