PointLight

PointLight

Point light

Constructor

new PointLight(position, color, intensity)

Source:

Constructor

Parameters:
Name Type Default Description
position Point

the position of the light

color Color

the color of the light

intensity number 1

the intensity of the light

Classes

PointLight
PointLight
PointLight
PointLight
PointLight

Members

color :Color

Source:

The color of the light.

Type:
  • Color

color :Color

Source:

The color of the light.

Type:
  • Color

color :Color

Source:

The color or the light.

Type:
  • Color

intensity :number

Source:

The intensity of the light.

Type:
  • number

intensity :number

Source:

The intensity of the light.

Type:
  • number

intensity :number

Source:

The intensity or the light.

Type:
  • number

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isLocal :boolean

Source:

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

Type:
  • boolean

isLocal :boolean

Source:

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

Type:
  • boolean

position :Point

Source:

The position of the light.

Type:

position :Point

Source:

The position of the light.

Type:

position :Point

Source:

The position of the light.

Type:

Methods

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

PointLight PointLight

Light at infinity in the positive E-direction

Constructor

new PointLight(color, position, intensity)

Source:

Constructor

Parameters:
Name Type Default Description
color Color

the color of the light

position Point

the position of the light

intensity number 1

the intensity of the light

Classes

PointLight
PointLight
PointLight
PointLight
PointLight

Members

color :Color

Source:

The color of the light.

Type:
  • Color

color :Color

Source:

The color of the light.

Type:
  • Color

color :Color

Source:

The color or the light.

Type:
  • Color

intensity :number

Source:

The intensity of the light.

Type:
  • number

intensity :number

Source:

The intensity of the light.

Type:
  • number

intensity :number

Source:

The intensity or the light.

Type:
  • number

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isLocal :boolean

Source:

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

Type:
  • boolean

isLocal :boolean

Source:

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

Type:
  • boolean

position :Point

Source:

The position of the light.

Type:

position :Point

Source:

The position of the light.

Type:

position :Point

Source:

The position of the light.

Type:

Methods

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

PointLight PointLight

Point light

Constructor

new PointLight(position, color, intensity)

Source:

Constructor

Parameters:
Name Type Default Description
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 1

the intensity of the light

Classes

PointLight
PointLight
PointLight
PointLight
PointLight

Members

color :Color

Source:

The color of the light.

Type:
  • Color

color :Color

Source:

The color of the light.

Type:
  • Color

color :Color

Source:

The color or the light.

Type:
  • Color

intensity :number

Source:

The intensity of the light.

Type:
  • number

intensity :number

Source:

The intensity of the light.

Type:
  • number

intensity :number

Source:

The intensity or the light.

Type:
  • number

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isLocal :boolean

Source:

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

Type:
  • boolean

isLocal :boolean

Source:

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

Type:
  • boolean

position :Point

Source:

The position of the light.

Type:

position :Point

Source:

The position of the light.

Type:

position :Point

Source:

The position of the light.

Type:

Methods

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

PointLight PointLight

Light at infinity in the positive E-direction

Constructor

new PointLight(color, intensity, position)

Source:

Constructor

Parameters:
Name Type Default Description
color Color

the color of the light

intensity number 1

the intensity of the light

position Point

the position of the light

Classes

PointLight
PointLight
PointLight
PointLight
PointLight

Members

color :Color

Source:

The color of the light.

Type:
  • Color

color :Color

Source:

The color of the light.

Type:
  • Color

color :Color

Source:

The color or the light.

Type:
  • Color

intensity :number

Source:

The intensity of the light.

Type:
  • number

intensity :number

Source:

The intensity of the light.

Type:
  • number

intensity :number

Source:

The intensity or the light.

Type:
  • number

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isLocal :boolean

Source:

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

Type:
  • boolean

isLocal :boolean

Source:

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

Type:
  • boolean

position :Point

Source:

The position of the light.

Type:

position :Point

Source:

The position of the light.

Type:

position :Point

Source:

The position of the light.

Type:

Methods

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

PointLight PointLight

Spherical point light

Constructor

new PointLight(position, color, intensity)

Source:

Constructor

Parameters:
Name Type Default Description
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 1

the intensity of the light

Classes

PointLight
PointLight
PointLight
PointLight
PointLight

Members

color :Color

Source:

The color of the light.

Type:
  • Color

color :Color

Source:

The color of the light.

Type:
  • Color

color :Color

Source:

The color or the light.

Type:
  • Color

intensity :number

Source:

The intensity of the light.

Type:
  • number

intensity :number

Source:

The intensity of the light.

Type:
  • number

intensity :number

Source:

The intensity or the light.

Type:
  • number

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isGlobal :boolean

Source:

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

Type:
  • boolean

isLocal :boolean

Source:

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

Type:
  • boolean

isLocal :boolean

Source:

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

Type:
  • boolean

position :Point

Source:

The position of the light.

Type:

position :Point

Source:

The position of the light.

Type:

position :Point

Source:

The position of the light.

Type:

Methods

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string

(abstract, static) glslClass() → {string}

Source:

Return the chunk of GLSL code defining the corresponding structure.

Returns:
Type
string