ConstDirLight

ConstDirLight

Constant local direction

Constructor

new ConstDirLight(color, intensity, direction)

Source:

Constructor.

Parameters:
Name Type Default Description
color Color

the color of the light

intensity number 1

the intensity of the light

direction Vector3

the direction of the light.

Classes

ConstDirLight
ConstDirLight
ConstDirLight

Members

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

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

ConstDirLight ConstDirLight

Constant local direction

Constructor

new ConstDirLight(color, intensity, direction)

Source:

Constructor.

Parameters:
Name Type Description
color Color

the color of the light

intensity number

the intensity of the light

direction Vector3

the direction of the light.

Classes

ConstDirLight
ConstDirLight
ConstDirLight

Members

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

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

ConstDirLight ConstDirLight

Constant local direction

Constructor

new ConstDirLight(color, intensity, direction)

Source:

Constructor.

Parameters:
Name Type Default Description
color Color

the color of the light

intensity number 1

the intensity of the light

direction Vector3

the direction of the light.

Classes

ConstDirLight
ConstDirLight
ConstDirLight

Members

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

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