mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Prevent OpenGL scene from Z clipping
This commit is contained in:
		
							parent
							
								
									1ab8efba7f
								
							
						
					
					
						commit
						70c032868a
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -588,9 +588,10 @@ sub Resize { | |||
|      | ||||
|     glMatrixMode(GL_PROJECTION); | ||||
|     glLoadIdentity(); | ||||
|     my $depth = 10 * max(@{ $self->max_bounding_box->size }); | ||||
|     glOrtho( | ||||
|         -$x/2, $x/2, -$y/2, $y/2, | ||||
|         -200, 10 * max(@{ $self->max_bounding_box->size }), | ||||
|         -$depth, 2*$depth, | ||||
|     ); | ||||
|   | ||||
|     glMatrixMode(GL_MODELVIEW); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci