Skip to content

Commit

Permalink
WebGL version: cleaning and refactoring
Browse files Browse the repository at this point in the history
Corrected many anti-patterns, thanks to @greggman advices. Removed
unused elements, better initialization of some elements, added some
comments.
  • Loading branch information
kosua20 committed Aug 1, 2017
1 parent 9d9f233 commit 269b0f4
Show file tree
Hide file tree
Showing 4 changed files with 342 additions and 258 deletions.
11 changes: 7 additions & 4 deletions webgl/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@
<script type="text/javascript" src="webgl-demo.js" charset="utf-8"></script>
<style type="text/css">
body {
max-width:90%;
position: relative;
margin-left: auto;
margin-right: auto;
border:0;
text-align: center;
}
canvas {
width:90vw;
height:90vh;
}
a, a:hover, a:visited {
color: black;
font-size: 27px;
Expand All @@ -27,8 +28,10 @@
<canvas id="gl-canvas">
No canvas or WebGL support.
</canvas>

<p>
<a href="http://simonrodriguez.fr/dragon">Simon Rodriguez - WebGL Dragon demo</a>
</p>

</body>
</html>
Loading

0 comments on commit 269b0f4

Please sign in to comment.