enderer);
			waterSimulation.updateNormals(renderer);

			const waterTexture = waterSimulation._currentRTT.texture;
			water.material.uniforms.water = waterTexture;

			renderer.setRenderTarget(backRenderTarget);
			renderer.setClearColor(1, 1, 1, 1);
			renderer.clear(true, true, true);
			renderer.renderScene(scene, camera);
		}

		requestAnimationFrame(loop);

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

			camera.setPerspective((45 / 180) * Math.