Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (22 sloc) 570 Bytes
<!DOCTYPE html>
<html>
<head>
<script src="scripts.js"></script>
<script id="vertex-shader" type="x-shader/x-vertex">
attribute vec2 a_position;
void main() {
gl_Position = vec4(a_position, 0.0, 1.0);
}
</script>
<script id="fragment-shader" type="x-shader/x-fragment">
void main() {
gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}
</script>
</head>
<body onload="main()">
<canvas id="canvas" width="400" height="400">
Your browser does not support canvas.
</canvas>
</body>
</html>