ESun

ESun

Light at infinity in the E-direction

Constructor

new ESun(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 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)

Classes

ESun
ESun

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

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

ESun ESun

Light at infinity in the E-direction

Constructor

new ESun(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 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)

Classes

ESun
ESun

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

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