fix viewport size
This commit is contained in:
		
							parent
							
								
									6a0e48a006
								
							
						
					
					
						commit
						b6c85bcb91
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -56,7 +56,7 @@ pub fn main() anyerror!void {
 | 
			
		|||
 | 
			
		||||
    // Camera
 | 
			
		||||
    const viewportHeight = 2.0;
 | 
			
		||||
    const viewportWidth = @floatToInt(usize, viewportHeight * aspectRatio);
 | 
			
		||||
    const viewportWidth = viewportHeight * aspectRatio;
 | 
			
		||||
    const focalLength = 1.0;
 | 
			
		||||
 | 
			
		||||
    const origin = Vec3{};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue