I am currently using OSX 10.9.5 (Mavericks) and following a WebGL tutorial script provided on . I copied and pasted the code from the tutorial into TextEdit and saved it as HTML with the following file structure:
webgl
|
+--index.html
|
+-- js/three.min.js
However, when I load the index.html file into the browser, instead of seeing the expected result of a WebGl rendered cube, I only see the HTML code rendered just like in my text editor. Can someone please help me understand why this happens? Thank you.