Follow the given steps:
- Open the ch02_08_ajax-car.html file using your web server.
- You should see something like this:
- The reason we selected the LINES model instead of the TRIANGLES model is to easily visualize the structure of the car.
- Find the line where the rendering mode is being selected and make sure that you understand what the code does.
- Go to the draw function.
- In the drawElements instruction, change the mode from gl.LINES to gl.TRIANGLES.
- Refresh the page in the web browser.
- What do you see? Can you guess why the visuals are different? What is your rationale?
Lights
Illumination helps us visualize ...