1.1 --- a/machine.html Fri Apr 01 01:45:39 2011 +0200
1.2 +++ b/machine.html Fri Apr 01 01:51:08 2011 +0200
1.3 @@ -0,0 +1,39 @@
1.4 +<html>
1.5 +<head>
1.6 +<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
1.7 +<title>Machine Alpha</title>
1.8 +<script src="scripts/CanvasMatrix.js" type="text/javascript"> </script>
1.9 +<script src="scripts/utils3d.js" type="text/javascript"> </script>
1.10 +<script src="scripts/glMatrix.js" type="text/javascript"></script>
1.11 +
1.12 +<script id="fragment-shader" type="x-shader/x-fragment">
1.13 + #ifdef GL_ES
1.14 + precision highp float;
1.15 + #endif
1.16 +
1.17 + void main(void) {
1.18 + gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
1.19 + }
1.20 +</script>
1.21 +
1.22 +<script id="vertex-shader" type="x-shader/x-vertex">
1.23 + attribute vec3 aVertexPosition;
1.24 +
1.25 + uniform mat4 uMVMatrix;
1.26 + uniform mat4 uPMatrix;
1.27 +
1.28 + void main(void) {
1.29 + gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);
1.30 + }
1.31 +</script>
1.32 +
1.33 +<script src="scripts/machine.js" type="text/javascript"></script>
1.34 +</head>
1.35 +
1.36 +<body onload="main();">
1.37 +<canvas id="machine">
1.38 + Download a browser with WebGL support, like Chrome or Firefox.
1.39 +</canvas>
1.40 +</body>
1.41 +
1.42 +</html>