er = API.count;
			}

			renderer.render(scene, camera);

			stats.end();
		}
		requestAnimationFrame(loop);

		function onWindowResize() {
			width = window.innerWidth;
			height = window.innerHeight;

			camera.setPerspective(45 / 180 * Math.PI, width / height, 1, 1000);
		
			renderer.backRenderTarget.resize(width, height);
		}
		window.addEventListener('resize', onWindowResize);
	</script>
</body>
</html>