er.beginRender();
			for (let i = 0; i < renderQueue.layerList.length; i++) {
				const renderQueueLayer = renderQueue.layerList[i];
				renderer.renderRenderableList(renderQueueLayer.opaque, renderStates, shadowRenderOptions);
				renderer.renderRenderableList(renderQueueLayer.transparent, renderStates, shadowRenderOptions);
			}
			renderer.endRender();
		}
		requestAnimationFrame(loop);

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

			camera.setPe