<script id="vertex-shader" type="x-shader/x-vertex" src="vshader.js"> attribute vec4 vPosition; void main() { gl_PointSize = 3.0; gl_Position = vPosition; } </script>
<script id="fragment-shader" type="x-shader/x-fragment"> precision mediump float; void main() { gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 ); } </script>
<script type="text/javascript" src="../Common/webgl-utils.js"></script> <script type="text/javascript" src="../Common/initShaders.js"></script> <script type="text/javascript" src="../Common/MV.js"></script> <script type="text/javascript" src="GLCanvas.js"></script>
<body> <h1>A Serpinski Gasket With OpenGL</h1> <script> var WIDTH = 500; var HEIGHT = 500; var canvas = new Canvas(WIDTH, HEIGHT); canvas.Redisplay(); </script> </body>