;

			// globals
			var stats;
			var params = {
				linearFilter: false,
				mipLevel: 0,
				sampleType: 0,
				powerOfTwo: false
			};
			var camera, scene, renderer, controls;
			var plane, mipPlane, fullPlane, ogTexture;
			var nearestTarget, linearTarget;

			init();
			animate();

			function init() {

				// initialize renderer, scene, camera
				camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, .1, 2000 );
				camera.position.set( 0.0, 2, 2 * 3.5 );

				scene = new 