Discussion
Copy the HTML code from the link – WebGL – Interactive Cube – Tutorialspoint (Links to an external site.) [https://www.tutorialspoint.com/webgl/webgl_interactive_cube.htm]. Past it in a HTML file and execute it. It should open a web browser.
Rotate the cube with your mouse. Look at the code, identify the mouse input trapping code.
What are the movements captured. Can your keyboard rotate (move) the cube? Write your observations.