Lighting Class
source/js/app/lighting.js:49
Constructor
Item Index
Methods
Methods
getInput
-
id
Defined in
source/js/app/lighting.js:39
Gets a float value from a DOMElement Input.
Parameters:
-
id
StringID of the DOMElement whose value we want.
Returns:
The parsed float value of that input.
getShininess
()
Float
Defined in
source/js/app/lighting.js:60
Gets the shininess parameter from the GUI (used for Phong shading)
Returns:
Planet shininess (between 0 and 100).
prepareLighting
()
Defined in
source/js/app/lighting.js:6
Prepares the canvas for drawing lighting by grabbing the lighting parameters from the GUI.