Since all this code is hosted on GitHub, you can run this solution using GitHub Pages. Beware that this link may not work. I had questionable performance from it (cross-origin errors).
Alternatively, you can open the solution locally by double-clicking the HTML file to run the solution in your browser. Personally, I tested on Google Chrome and Windows 10.
Warning: You will need to launch your own local server to get the local JSON.
If you’re on Windows and you have Python 3, feel free to use the server.bat
file to launch a local server to localhost:8000
.
With the solution open, you can begin playing with the following controls:
In addition, there are buttons for the various texture options.
The solution should render as follows:
Source credit goes to Dr. Han-Wei Shen who provided the template code via their
OSU course website. Namely, code12.html
, code12.js
,
and shader_setup_5.js
.
Changes to these templates included:
shaders.js
file.Solution is freely available under the MIT license.