HTML and CSS Reference
In-Depth Information
Step 1: Review/create the JavaScript code base and index.html
Create a file called index.html from the following listing, as a base for running all of your
JavaScript code. You'll be including a <canvas> tag because WebGL runs on top of the
Canvas API.
Listing 9.1. index.html—Creating the engine HTML
Can I use 2D Canvas in WebGL?
Search WWH ::




Custom Search