 (2.0*scale) + vec2(0.5,-0.5));
        gl_FragColor = vec4( tex.xyz, 1.0 );

      }
		}
	</script>

  <script>
    // TODO : Clean this up a bit. It's still pretty messy.

  	// Get the starting canvas size
  	var WIDTH = $('#display-area').width(),
  	    HEIGHT = $('#display-area').height();

  	// Get the DOM element to attach the render canvas to
  	var $container = $('#display-area');

  	// Create a WebGL renderer, camera and a scene
  	renderer = new THREE.WebGLRenderer();
    camera = new THREE.Or