|  | @ -19,9 +19,6 @@ | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 	let imgW, imgH, imgRatio |  |  | 	let imgW, imgH, imgRatio | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 	console.log(containerH, containerW) |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 	 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 	var clock = new THREE.Clock(); |  |  | 	var clock = new THREE.Clock(); | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | @ -32,7 +29,7 @@ | 
			
		
	
		
		
			
				
					|  |  | 		SetupControls() |  |  | 		SetupControls() | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 		composer = new EffectComposer( renderer ); |  |  | 		composer = new EffectComposer( renderer ); | 
			
		
	
		
		
			
				
					
					|  |  | 		const renderPixelatedPass = new RenderPixelatedPass( 1.2, scene, camera ); |  |  | 		const renderPixelatedPass = new RenderPixelatedPass( 3, scene, camera ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |         renderPixelatedPass.normalEdgeStrength = 1; |  |  |         renderPixelatedPass.normalEdgeStrength = 1; | 
			
		
	
		
		
			
				
					|  |  |         renderPixelatedPass.depthEdgeStrength = 1; |  |  |         renderPixelatedPass.depthEdgeStrength = 1; | 
			
		
	
		
		
			
				
					|  |  |         renderPixelatedPass.pixelAlignedPanning = false; |  |  |         renderPixelatedPass.pixelAlignedPanning = false; | 
			
		
	
	
		
		
			
				
					|  | @ -47,7 +44,6 @@ | 
			
		
	
		
		
			
				
					|  |  | 		textureLoader.crossOrigin = "Anonymous" |  |  | 		textureLoader.crossOrigin = "Anonymous" | 
			
		
	
		
		
			
				
					|  |  | 		const texture = textureLoader.load(imageUrl, function ( tex ) { |  |  | 		const texture = textureLoader.load(imageUrl, function ( tex ) { | 
			
		
	
		
		
			
				
					|  |  | 			// tex and texture are the same in this example, but that might not always be the case
 |  |  | 			// tex and texture are the same in this example, but that might not always be the case
 | 
			
		
	
		
		
			
				
					|  |  | 			console.log( tex.image.width, tex.image.height ); |  |  |  | 
			
		
	
		
		
			
				
					|  |  | 			imgW = tex.image.width |  |  | 			imgW = tex.image.width | 
			
		
	
		
		
			
				
					|  |  | 			imgH = tex.image.height |  |  | 			imgH = tex.image.height | 
			
		
	
		
		
			
				
					|  |  | 			imgRatio = imgW / imgH |  |  | 			imgRatio = imgW / imgH | 
			
		
	
	
		
		
			
				
					|  | @ -73,7 +69,7 @@ | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 	function SetupCamera(){ |  |  | 	function SetupCamera(){ | 
			
		
	
		
		
			
				
					|  |  | 		aspect = (containerW) / (containerH) |  |  | 		aspect = (containerW) / (containerH) | 
			
		
	
		
		
			
				
					
					|  |  | 		frustumSize = 1.5 |  |  | 		frustumSize = 0.5 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | 		camera = new THREE.OrthographicCamera( |  |  | 		camera = new THREE.OrthographicCamera( | 
			
		
	
		
		
			
				
					|  |  | 			frustumSize * aspect / -2, |  |  | 			frustumSize * aspect / -2, | 
			
		
	
		
		
			
				
					|  |  | 			frustumSize * aspect / 2, |  |  | 			frustumSize * aspect / 2, | 
			
		
	
	
		
		
			
				
					|  | @ -96,7 +92,10 @@ | 
			
		
	
		
		
			
				
					|  |  | 			MIDDLE: THREE.MOUSE.DOLLY, |  |  | 			MIDDLE: THREE.MOUSE.DOLLY, | 
			
		
	
		
		
			
				
					|  |  | 			LEFT: THREE.MOUSE.PAN |  |  | 			LEFT: THREE.MOUSE.PAN | 
			
		
	
		
		
			
				
					|  |  | 		} |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  | 		camera.position.set(0, 0, 20) |  |  | 		controls.minZoom = 0.3 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  |  |  |  | 		controls.maxZoom = 0.75 | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 		camera.position.set(0, 0, 5) | 
			
		
	
		
		
			
				
					|  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 		controls.update() |  |  | 		controls.update() | 
			
		
	
		
		
			
				
					|  |  | 	} |  |  | 	} | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  | @ -106,9 +105,9 @@ | 
			
		
	
		
		
			
				
					|  |  | 		scene.add(ambientLight); |  |  | 		scene.add(ambientLight); | 
			
		
	
		
		
			
				
					|  |  | 	 |  |  | 	 | 
			
		
	
		
		
			
				
					|  |  | 		// Add Directional Light
 |  |  | 		// Add Directional Light
 | 
			
		
	
		
		
			
				
					
					|  |  | 		const directionalLight = new THREE.DirectionalLight(0xffffff, 0); // Soft white light
 |  |  | 		const directionalLight = new THREE.DirectionalLight(0x0075FF, 4); // Soft white light
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | 		directionalLight.position.set(-5, 0, 5).normalize(); |  |  | 		directionalLight.position.set(-5, 0, 5).normalize(); | 
			
		
	
		
		
			
				
					
					|  |  | 		scene.add(directionalLight); |  |  | 		//scene.add(directionalLight);
 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					|  |  | 	} |  |  | 	} | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | 	function animate(){ |  |  | 	function animate(){ | 
			
		
	
	
		
		
			
				
					|  | 
 |