Your browser doesn't support the features required for this presentation, so you are presented with a simplified version.
For the best experience please use the latest Chrome, Safari or Firefox browser.
<script type="text/javascript" src="js/shaderback.js"></script> <script type="text/javascript"> window.onload = shaderback_loadURL("shader.txt"); </script>where shader.txt is the URI to your GLSL fragment shader code.
// High precision is needed for the time variable precision highp float; // The following variables are passed in automatically varying vec2 vTextureCoord; uniform float time; uniform float width; uniform float height; void main(void) { // Perform whatever per-pixel calculations you want vec4 colour = vec4(0.6, 0.6, 0.6, 1.0); // Return the colour to be rendered // Alpha blends with page background gl_FragColor = colour; }
Use a spacebar or arrow keys to navigate