Lighting Class
Constructor
Lighting
()
Item Index
Methods
Methods
getInput
(
Float
-
id
Gets a float value from a DOMElement Input.
Parameters:
-
id
StringID 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.