function main_init(){canvas=document.getElementById("panel");var e=canvas.getContext("2d");camera=new THREE.Camera(30,window.innerWidth/window.innerHeight,1,2e3),camera.position.z=6e3,scene=new THREE.Scene,geometry=new THREE.Geometry;var n=THREE.ImageUtils.loadTexture("images/clouds.png");n.magFilter=THREE.LinearMipMapLinearFilter,n.minFilter=THREE.LinearMipMapLinearFilter;var t=new THREE.Fog(2432306,-100,5e3);meshMaterial=new THREE.MeshShaderMaterial({uniforms:{map:{type:"t",value:2,texture:n},fogColor:{type:"c",value:t.color},fogNear:{type:"f",value:t.near},fogFar:{type:"f",value:t.far}},vertexShader:document.getElementById("vs").textContent,fragmentShader:document.getElementById("fs").textContent,depthTest:!1});var a=new THREE.Mesh(new THREE.PlaneGeometry(64,64));for(i=0;i<1e4;i++)a.position.x=1e3*Math.random()-500,a.position.y=-Math.random()*Math.random()*200-15,a.position.z=i,a.rotation.z=Math.random()*Math.PI,a.scale.x=a.scale.y=Math.random()*Math.random()*1.5+.5,THREE.GeometryUtils.merge(geometry,a);mesh=new THREE.Mesh(geometry,meshMaterial),scene.addObject(mesh),mesh=new THREE.Mesh(geometry,meshMaterial),mesh.position.z=-1e4,scene.addObject(mesh),renderer=new THREE.WebGLRenderer({antialias:!1}),renderer.setSize(window.innerWidth,window.innerHeight),document.body.appendChild(renderer.domElement),document.addEventListener("mousemove",onMousemove,!1),window.addEventListener("resize",onResize,!1),setInterval(drawScene,30)}function onMousemove(e){}function onResize(e){camera.aspect=window.innerWidth/window.innerHeight,camera.updateProjectionMatrix(),renderer.setSize(window.innerWidth,window.innerHeight)}function drawScene(){position=.1*((new Date).getTime()-startTime)%1e4,camera.position.x+=.01*mouseX,camera.position.y+=.01*-mouseY,camera.position.z=1e4-position,renderer.render(scene,camera)}var canvas,ctx,camera,scene,renderer,meshMaterial,mesh,geometry,i,f,mouseX=0,mouseY=0,startTime=(new Date).getTime(),windowHalfX=window.innerWidth/2,windowHalfY=window.innerHeight/2;if(window.attachEvent)window.attachEvent("onload",main_init);else if(window.onload){var curronload=window.onload,newonload=function(){curronload(),main_init()};window.onload=newonload}else window.onload=main_init;