API Docs for: 0.1.0
Show:

Lighting Class

Constructor

Lighting

()

Methods

getInput

(
  • id
)
Float

Gets a float value from a DOMElement Input.

Parameters:

  • id String

    ID of the DOMElement whose value we want.

Returns:

Float:

The parsed float value of that input.

getShininess

() Float

Gets the shininess parameter from the GUI (used for Phong shading)

Returns:

Float:

Planet shininess (between 0 and 100).

prepare

()

Alias for prepareLighting().

prepareLighting

()

Prepares the canvas for drawing lighting by grabbing the lighting parameters from the GUI.