Permalink
Browse files

???

1 parent ae55c70 commit 51d9aee719fc8a6bf1c9c2b45f4d83a7c92c5f18 gman committed Mar 22, 2011
Showing with 7 additions and 5 deletions.
  1. +7 −5 2d/2d-test.html
View
@@ -3,6 +3,7 @@
<style>
body {
background-color: black;
+ color: white;
}
</style>
<script>
@@ -69,11 +70,11 @@
gl.enableVertexAttribArray(positionLocation);
gl.vertexAttribPointer(
positionLocation, // index
- 2, // number of components per element
- gl.FLOAT, // type of data
- false, // normalized
- 0, // stride
- 0); // offset
+ 2, // number of components per element
+ gl.FLOAT, // type of data
+ false, // normalized
+ 0, // stride
+ 0); // offset
var ploc = gl.getUniformLocation(program, "projection");
var mloc = gl.getUniformLocation(program, "model");
@@ -128,6 +129,7 @@
</script>
</head>
<body>
+<div>Pixel Perfect 2D in WebGL</div>
<canvas id="mycanvas" width="800" height="600"></canvas>
</body>
</html>

0 comments on commit 51d9aee

Please sign in to comment.