mirror of
				https://github.com/haselkern/Minecraft-ArmorStand.git
				synced 2025-10-31 12:14:05 +00:00 
			
		
		
		
	
							parent
							
								
									4ad39b87f6
								
							
						
					
					
						commit
						66f12af03f
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		
							
								
								
									
										11
									
								
								js/main.js
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								js/main.js
									
										
									
									
									
								
							|  | @ -333,6 +333,17 @@ function setup(){ | ||||||
| 	pointLight.position.set(0, 300, 200); | 	pointLight.position.set(0, 300, 200); | ||||||
| 
 | 
 | ||||||
| 	scene.add(pointLight); | 	scene.add(pointLight); | ||||||
|  | 
 | ||||||
|  | 	// Resize view
 | ||||||
|  | 	window.addEventListener("resize", () => { | ||||||
|  | 		width = $("#gl").width(); | ||||||
|  | 		height = $("#gl").height(); | ||||||
|  | 		 | ||||||
|  | 		camera.aspect = width / height; | ||||||
|  | 		camera.updateProjectionMatrix(); | ||||||
|  | 
 | ||||||
|  | 		renderer.setSize(width, height); | ||||||
|  | 	}); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // Write stuff from input into variables
 | // Write stuff from input into variables
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lenny Lord
						Lenny Lord